Skip to content

Avoid inline styles in chart scripts#9220

Open
sigurdm wants to merge 1 commit intodart-lang:masterfrom
sigurdm:no_inline_style
Open

Avoid inline styles in chart scripts#9220
sigurdm wants to merge 1 commit intodart-lang:masterfrom
sigurdm:no_inline_style

Conversation

@sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Feb 16, 2026

No description provided.

@sigurdm sigurdm requested review from isoos and jonasfj February 16, 2026 13:45

void hideCursor(_) {
cursor.setAttribute('style', 'opacity:0');
toolTip.setAttribute('style', 'opacity:0;position:absolute;');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

position: absolute is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that matters when the opacity is 0.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not, let's try it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might matter a bit if there is a CSS transition on the opacity :D

@sigurdm sigurdm mentioned this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments