Problem/Motivation
Follow-up from the core MR.
In core/modules/navigation/css/components/toolbar-button.pcss.css the code written in line 286 for .toolbar-button--collapsible .toolbar-button__label is reimplementing something the core class .visually-hidden .
Proposed resolution
Directly apply the class so no extra code is needed.
Remaining tasks
Issue fork drupal-3442931
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ckrinaComment #3
ckrinaComment #5
gauravvvv commentedComment #7
finnsky commentedThank you! I've added couple of comments.
Comment #8
finnsky commentedIn fact i would better to discuss it.
@ckrina
I think CSS solution of duplication .visually-hidden CSS properties looks cleaner than JS extra search of that labels.
Probably better to keep it as is.
Comment #9
gauravvvv commentedAddressed feedbacks in MR
Comment #10
smustgrave commentedMay be a stretch but seems like something that a simple assertion could be added to a test.
Comment #11
larowlanI was the one who asked for this, but I agree with #8
It's a shame we don't use https://www.npmjs.com/package/postcss-mixins because this would be a good case for it.
It's also a shame there's no display: visually-hidden in the platform, but I see there are folks proposing it so perhaps at some point we will be able to ditch this.