]> cat aescling's git repositories - mastodon.git/commit
feat(cw-button): Add aria controls to CW trigger (#2303)
authorStephen Burgess <stephenburgess8@gmail.com>
Sun, 23 Apr 2017 18:33:44 +0000 (13:33 -0500)
committerEugen <eugen@zeonfederated.com>
Sun, 23 Apr 2017 18:33:44 +0000 (20:33 +0200)
commit995f0ad51ca2d151291ff827c7e0b2378ff0e108
treed39e9c1263aea26b86eb12c2b486071e25a059f6
parent948dd26931f450d42322c32a3eb9d97eccb69d4d
feat(cw-button): Add aria controls to CW trigger (#2303)

Add an ID to the CW spoiler input field to give aria-controls a handle on it. Pass that id to the CW trigger button. Modify text icon button component to accept aria controls id value. Add aria-expanded value to text icon button to indicate when it is expanded.
app/assets/javascripts/components/features/compose/components/compose_form.jsx
app/assets/javascripts/components/features/compose/components/text_icon_button.jsx
app/assets/javascripts/components/features/compose/containers/spoiler_button_container.jsx