Skip to content

Commit

Permalink
feat(list): added new styles for focus
Browse files Browse the repository at this point in the history
  • Loading branch information
lkramarov committed May 21, 2018
1 parent dae9f41 commit 2cba28a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/lib-dev/list/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ <h5>multiple selection</h5>
<mc-list-option value="Hovered" class="mc-hovered">Hovered</mc-list-option>
<mc-list-option value="Focused" class="mc-focused">Focused</mc-list-option>
<mc-list-option value="Selected" class="mc-selected">Selected</mc-list-option>
<mc-list-option value="Progress" class="mc-progress">Progress</mc-list-option>
</mc-list-selection>
<br>
<div>multipleSelected: {{ multipleSelected }}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/list/_list-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $mc-list-item-inset-divider-offset: 72px;
flex-direction: row;
align-items: center;

height: inherit;
height: 100%;

padding: 0 $mc-list-side-padding;
}
Expand Down
7 changes: 4 additions & 3 deletions src/lib/list/_list-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@

.mc-list,
.mc-list-selection {

.mc-list-item {
color: mc-color($foreground, text);
}

.mc-list-option {
outline: none;
border: 1px solid transparent;
border: 2px solid transparent;

color: mc-color($foreground, text);

Expand All @@ -33,7 +34,7 @@
}

&.mc-focused {
border: 1px solid mc-color($primary, 400);
border: 2px solid mc-color($primary, 500);
}

&.mc-selected {
Expand Down Expand Up @@ -61,9 +62,9 @@
font-family: $font-family;
}

// Default list
.mc-list,
.mc-list-selection {

.mc-list-item {
font-size: mc-font-size($config, subheading-2);

Expand Down

0 comments on commit 2cba28a

Please sign in to comment.