Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add aria-pressed to the editor toolbar toggle buttons.
  • Loading branch information
afercia committed May 3, 2017
commit 4f9ef25629f3a77c7913dafc6a127125ba2352a9
4 changes: 3 additions & 1 deletion editor/components/toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function Toolbar( { controls } ) {
} }
className={ classNames( 'editor-toolbar__control', {
'is-active': control.isActive
} ) } />
} ) }
aria-pressed={ control.isActive ? 'true' : 'false' }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should just be { control.isActive }.

/>
) ) }
</ul>
);
Expand Down