Description
Description
Splitting this out from #56123 (comment)
It appears the packages/components/src/toolbar/toolbar-button/style.scss file only contains CSS that is scoped to some kind of data-subscript
HTML attribute used on the toolbar buttons.
After some code archeology, I have the impression this is no longer in use in the editor and it was meant for some subscript text within the toolbar buttons / dropdowns like the heading levels.
I'm not 100% sure it is no longer in use and I'd appreciate some feedback from anyone more familiar with this. Cc @WordPress/gutenberg-design
If it is proved it is no longer in user, this file could be entirely removed together with occurrences of data-subscript in the codebase. I found at least two occurrences of a data-subscript
attribute and subscript
prop in two files:
packages/components/src/button/index.native.js
packages/components/src/toolbar/toolbar-button/index.tsx
Also, I'm not sure why some toolbar buttons are supposed to have a components-toolbar__control
CSS class. That seems part of some old implementation as well.
Step-by-step reproduction instructions
- Check the contents of the
packages/components/src/toolbar/toolbar-button/style.scss
file - Observe all CSS rules are scoped to a
data-subscript
attribute. - Observe also the
position: relative;
property is meant for the subscript text positioning. - Check for actual usage of subscript text within the buttons (I couldn't find any).
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes