seb-oss / green

Green is an open-source design system built by SEB.
https://storybook.seb.io/
Apache License 2.0
32 stars 44 forks source link

add aria label on the drop down component #1480

Closed SEBEric closed 5 days ago

SEBEric commented 5 days ago

Does the component already exist

For which framework/library you are requesting the component

Angular

Description

add the possibility to set aria label on the drop down component

Who will benefit from this feature?

everyone

Anything else?

No response

splashdust commented 5 days ago

You can set the label using the label input. This will set the accessible label for the component (using aria-label internally on the appropriate element). If you need to render the component without a visible label, you can set the hideLabel input to true.

SEBEric commented 1 day ago

These is not suppose to be a label in the app

splashdust commented 1 day ago

Yes, I understand. That is what the hideLabel input does.

Like this: https://storybook.seb.io/pr-1485/core/?path=/docs/docs-components-dropdown--docs#hidden-label

SEBEric commented 1 day ago

I see, thanks :)