Skip to content

Commit

Permalink
Editor Menubar Example: Visual design to distinguish between menuitem…
Browse files Browse the repository at this point in the history
…radio and meuitemcheckbox (pull #853)

Resolves issue #605 by:
* Indicating menuitemcheckbox elements are checked with a  checkmark icon.
* Indicating menuitemradio elements are checked with a filled in circle icon.
  • Loading branch information
carmacleod authored and mcking65 committed Dec 12, 2018
1 parent 301cb0d commit 08e5fe0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/menubar/menubar-2/css/menubarAction.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,16 @@ ul[role="menubar"] [role="menuitemradio"][aria-checked='true'] {
padding-right: 1.25em;
}

ul[role="menubar"] [role="menuitemcheckbox"][aria-checked='true']:before,
ul[role="menubar"] [role="menuitemradio"][aria-checked='true']:before {
ul[role="menubar"] [role="menuitemcheckbox"][aria-checked='true']:before {
content: url('../images/check-brown.png');
padding-right: 0.3em;
}

ul[role="menubar"] [role="menuitemradio"][aria-checked='true']:before {
content: url('../images/dot-brown.png');
padding-right: 0.3em;
}


/*
* Text area styles
Expand Down
Binary file added examples/menubar/menubar-2/images/dot-brown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 08e5fe0

Please sign in to comment.