Skip to content

Commit

Permalink
FSR-1293: Fix broken CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyurx11 committed Oct 17, 2024
1 parent 1431e6d commit bce3449
Showing 1 changed file with 71 additions and 56 deletions.
127 changes: 71 additions & 56 deletions server/src/sass/components/_chart-controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,87 @@
position: relative;
overflow: auto;
z-index: 1;
margin: -3px -3px 0px -3px;
padding: 3px 3px 0px 3px;
}
.defra-chart-controls__period {
margin: auto;
display: inline-block;
padding-bottom: 4px;
}
.defra-chart-controls__pagination {
display: block;
padding-bottom: 4px;
float: right;
}
.defra-chart-controls-button {
touch-action: manipulation;
@extend .defra-button-text-s;
padding: 7.5px;
display: inline-block;
position: relative;
text-align: center;
text-decoration: none;
&--selected:not(:focus) {
border-bottom: 4px solid govuk-colour('blue');
margin-bottom: -4px;
margin: -3px -3px 0 -3px;
padding: 3px 3px 0 3px;

&__period {
margin: auto;
display: inline-block;
padding-bottom: 4px;
}
&--selected:hover {
border-bottom-color: $govuk-link-hover-colour;

&__pagination {
display: block;
padding-bottom: 4px;
float: right;
}
&__icon {

&__button {
touch-action: manipulation;
padding: 7.5px;
display: inline-block;
}
svg {
position: relative;
top: 1px;
margin-left: 5px;
color: govuk-colour('black');
forced-color-adjust: auto;
}
&--back {
padding-left: 0px;
padding-right: 0px;
margin-right: 15px;
svg {
margin-right: 5px;
margin-left: 0px;
text-align: center;
text-decoration: none;
@extend .defra-button-text-s;

&--selected:not(:focus) {
border-bottom: 4px solid govuk-colour('blue');
margin-bottom: -4px;
}
}
&--forward {
padding-left: 0px;
padding-right: 0px;
margin-right: 0px;
}
&[aria-disabled="true"] {
cursor: not-allowed;
}
&[aria-disabled="true"]:not(:focus) {
color: govuk-colour('mid-grey');

&--selected:hover {
border-bottom-color: $govuk-link-hover-colour;
}

&__icon {
display: inline-block;
}

svg {
color: govuk-colour('mid-grey');
position: relative;
top: 1px;
margin-left: 5px;
color: govuk-colour('black');
forced-color-adjust: auto;
}
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active) {

&--back {
padding-left: 0;
padding-right: 0;
margin-right: 15px;

svg {
margin-right: 5px;
margin-left: 0;
}
}

&--forward {
padding-left: 0;
padding-right: 0;
margin-right: 0;
}

&[aria-disabled="true"] {
color: GrayText !important;
cursor: not-allowed;
}

&[aria-disabled="true"]:not(:focus) {
color: govuk-colour('mid-grey');

svg {
color: govuk-colour('mid-grey');
}
}

@media screen and (-ms-high-contrast: active), screen and (forced-colors: active) {
&[aria-disabled="true"] {
color: GrayText !important;

svg {
color: GrayText !important;
}
}
}
}
Expand Down

0 comments on commit bce3449

Please sign in to comment.