design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Seeing the name of the SLDSButton next to the icon

Open mmoriar1 opened this issue 11 years ago • 5 comments

new with 0.0.25: the name of the icon is appearing unhidden next to the icon itself. no other changes have been made, is this on our end or yours?

screen shot 2015-12-01 at 4 49 46 pm

Thanks!

mmoriar1 avatar Dec 02 '15 00:12 mmoriar1

@leiwlotus , just FYI :)

mmoriar1 avatar Dec 02 '15 00:12 mmoriar1

Thanks @mmoriar1

leiwlotus avatar Dec 02 '15 00:12 leiwlotus

@leiwlotus found the issue, the behavior of the label property changed, if you change the desired hidden label to assistiveText, it will be hidden again.

This should be probably documented somewhere though :), but this is a suitable fix/desired behavior i would think, it was just a minor breaking change.

mmoriar1 avatar Dec 04 '15 00:12 mmoriar1

@donnieberg can you take a look to see if this is an expected change? Thanks.

billyma avatar Dec 04 '15 17:12 billyma

@leiwlotus @mmoriar1 @billyma yes, that's an expected change. We're working on the documentation this week so that update was not updated in the docs. I apologize for that! For all icons (without text), yes, please add the prop, assistiveText="my hidden text that is read aloud to screenreaders"

donnieberg avatar Dec 08 '15 23:12 donnieberg