Thanks to visit codestin.com
Credit goes to github.com

Skip to content

David/enhancement modebar #7429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

davidangarita1
Copy link

@davidangarita1 davidangarita1 commented May 28, 2025

Pull request to improve accessibility for the modebar

@ayjayt
Copy link
Contributor

ayjayt commented Jun 3, 2025

So I'm wondering what are the configuration options for the modebar besides hover, and what actually changes the visibility during hover (is it just css? can we do the same thing for focus as hover).

Also looks like your editor did a bunch of reformatting, you should undo that

Also, if we use button, we don't need tabindex now, right?

@ayjayt
Copy link
Contributor

ayjayt commented Jun 3, 2025

Yeah, so, we have two options:

  1. add accessibility manually w/ javascript (tabindex and onevent listener)

  2. just use a button (but care for the styling changes)

I prefer 2 but we should do one or the other

Copy link
Contributor

@ayjayt ayjayt left a comment

Choose a reason for hiding this comment

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

what are the configuration options for the modebar? can we fix the formatting? can we choose one of two accessibility strategies?

Comment on lines +33 to 37
a {
display: grid;
place-content: center;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

old? button?

Copy link
Author

Choose a reason for hiding this comment

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

This anchor belongs to the plotly logo at the end of the modebar.

Comment on lines +48 to +49
border: none;
background: transparent;
Copy link
Contributor

Choose a reason for hiding this comment

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

better than all: reset?

@davidangarita1 davidangarita1 marked this pull request as ready for review June 3, 2025 17:31
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.

2 participants