diff --git a/components/ToggleList.mustache b/components/ToggleList.mustache index d9f2c9cc8..9bd0e3df5 100644 --- a/components/ToggleList.mustache +++ b/components/ToggleList.mustache @@ -1 +1,2 @@ -{{> ToggleList/ToggleList}} \ No newline at end of file +{{> ToggleList/ToggleList}} + diff --git a/components/ToggleList/MenuListItem.less b/components/ToggleList/MenuListItem.less index 5cd5a7e55..a7541b8e6 100644 --- a/components/ToggleList/MenuListItem.less +++ b/components/ToggleList/MenuListItem.less @@ -3,30 +3,39 @@ @import '../../minerva.less/minerva.variables.less'; @import '../../minerva.less/minerva.mixins.less'; -.toggle-list-item__anchor--menu { - font-size: @font-size-minerva-small; - font-weight: bold; - // Fill the list item cell. - .box-sizing( border-box ); +.toggle-list-item { display: block; - width: 100%; - // padding: 1em; - white-space: nowrap; - // Left-align text. Button elements are centered. - text-align: left; - // - color: @grayMediumDark; - - &:visited, &:active { - // Visited and active links need extra specificity. - color: @grayMediumDark; - } // // Make the app feel like an app, not a JPEG. When hovering over a menu item, add a little // interactivity. &:hover { - text-decoration: none; background: @grayLightest; } } + +.toggle-list-item__anchor { + display: block; + + &:hover { + text-decoration: none; + } + + &:visited, &:active { + color: @grayMediumDark; + } +} + +.toggle-list-item__icon { + vertical-align: middle; +} + +.toggle-list-item__label { + // Left-align text. Button elements are centered. + text-align: left; + color: @grayMediumDark; + font-weight: bold; + white-space: nowrap; + vertical-align: middle; + font-size: @font-size-minerva-small; +} diff --git a/components/ToggleList/ToggleList.less b/components/ToggleList/ToggleList.less index a7f353415..fc5c995e0 100644 --- a/components/ToggleList/ToggleList.less +++ b/components/ToggleList/ToggleList.less @@ -9,6 +9,8 @@ } .toggle-list__toggle { + // labels are inline by default and this is also an icon + display: inline-block; // Use the hand icon for the toggle button which is actually a checkbox label. cursor: pointer; } diff --git a/components/ToggleList/ToggleList.mustache b/components/ToggleList/ToggleList.mustache index cc78a8292..2479a0b00 100644 --- a/components/ToggleList/ToggleList.mustache +++ b/components/ToggleList/ToggleList.mustache @@ -24,7 +24,7 @@ data-event-name="{{analyticsEventName}}"> {{text}} -