Closed EBoisseauSierra closed 5 years ago
well… it seems that it is due to a no-break space (unicode 0000A0
/C2 A0
instead of 000020
/20
) in the source code between color:
and #f00;
.
Plus me using atom, which doesn't warn you when using special invisible characters.
Anyway, it's now solved. Sorry for bothering.
Problem
I have a basic Dash app with a hyperlink that should change colour when hovered over. However, this doesn't happen, until I manually change the colour in my browser devtools: see this video.
MWE
Consider following folder structure:
With files as following:
dash-app.py
:from os import path as os_path
Configuring the app
app = dash.Dash( name, url_base_pathname= '/', assets_url_path= '/assets/', assets_folder= os_path.join(os_path.dirname(os_path.abspath(file)), 'assets/') ) app.layout = html.Main( [ html.P( [ ''' Morbi vitae nibh vel ex commodo tempus quis sit amet libero. ''', html.A( 'This is an inline hyperlink.', href='/', ), ''' And some more text after it. ''', ] ), ] )
if name == 'main': app.config.update({ 'routes_pathname_prefix': '/', 'requests_pathname_prefix': '/', }) app.run_server( debug=True, )
a { text-decoration: underline; color: inherit; } a:hover, a:active { color: #f00; }