Skip to content

Commit

Permalink
Update option select component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andysellick committed Aug 16, 2019
1 parent 8ce97db commit caee7c0
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions app/assets/stylesheets/components/_option-select.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.app-c-option-select {
position: relative;
padding: 0 0 1px;
background-color: govuk-colour("grey-3");
background-color: govuk-colour("light-grey", $legacy: "grey-3");
margin-bottom: govuk-spacing(6);

@include media(desktop) {
Expand Down Expand Up @@ -45,7 +45,8 @@
}

.app-c-option-select__button {
z-index: 100;
position: relative;
z-index: 1;
padding-right: 40px;
width: 100%;
background: none;
Expand All @@ -55,13 +56,13 @@

&:hover,
&:hover + .app-c-option-select__selected-counter {
background-color: govuk-colour("grey-2");
background-color: govuk-colour("mid-grey", $legacy: "grey-2");
}

&:hover ~ .app-c-option-select__container,
&:hover ~ .app-c-option-select__selected-counter,
&:hover ~ .app-c-option-select__filter {
border-color: govuk-colour("grey-2");
border-color: govuk-colour("mid-grey", $legacy: "grey-2");
}

&::-moz-focus-inner {
Expand All @@ -70,6 +71,13 @@

&:focus {
outline: none;
@include govuk-focused-text;

& ~ .app-c-option-select__selected-counter {
position: relative;
z-index: 2;
@include govuk-focused-text;
}

&:after {
content: "";
Expand All @@ -78,7 +86,6 @@
left: 0;
width: 100%;
height: 100%;
outline: solid 3px govuk-colour('yellow');
}
}

Expand All @@ -103,7 +110,7 @@
max-height: 200px;
overflow-y: auto;
overflow-x: hidden;
border: govuk-spacing(1) solid govuk-colour("grey-3");
border: govuk-spacing(1) solid govuk-colour("light-grey", $legacy: "grey-3");
background-color: govuk-colour("white");

&:focus {
Expand All @@ -118,8 +125,8 @@
.app-c-option-select__filter {
position: relative;
background: govuk-colour('white');
border-left: govuk-spacing(1) solid govuk-colour("grey-3");
border-right: govuk-spacing(1) solid govuk-colour("grey-3");
border-left: govuk-spacing(1) solid govuk-colour("light-grey", $legacy: "grey-3");
border-right: govuk-spacing(1) solid govuk-colour("light-grey", $legacy: "grey-3");
padding: 13px 13px govuk-spacing(2) 13px;
}

Expand All @@ -135,7 +142,7 @@

.js-enabled {
.app-c-option-select__container {
border: govuk-spacing(1) solid govuk-colour("grey-3");
border: govuk-spacing(1) solid govuk-colour("light-grey", $legacy: "grey-3");
border-top: 0;
}

Expand All @@ -156,7 +163,7 @@
.app-c-option-select--expander {
padding: 0;
margin: 0;
background: none;
background-color: transparent;
border-bottom: solid 1px govuk-colour("black");

.app-c-option-select__container {
Expand All @@ -176,14 +183,6 @@

.app-c-option-select__button {
position: relative;

&:hover {
background: none;

& + .app-c-option-select__selected-counter {
background: none;
}
}
}

.app-c-option-select__selected-counter {
Expand Down

0 comments on commit caee7c0

Please sign in to comment.