Skip to content

Commit

Permalink
Add not-allowed cursor style to disabled inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed Feb 13, 2023
1 parent 021f0c3 commit 1f98862
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/govuk/components/button/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ $govuk-button-text-colour: govuk-colour("white") !default;

&:hover {
background-color: $govuk-button-colour;
cursor: default;
cursor: not-allowed;
}

&:active {
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/checkboxes/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
// Disabled state
.govuk-checkboxes__input:disabled,
.govuk-checkboxes__input:disabled + .govuk-checkboxes__label {
cursor: default;
cursor: not-allowed;
}

.govuk-checkboxes__input:disabled + .govuk-checkboxes__label,
Expand Down
1 change: 1 addition & 0 deletions src/govuk/components/file-upload/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

&:disabled {
opacity: .5;
cursor: not-allowed;
}
}
}
1 change: 1 addition & 0 deletions src/govuk/components/input/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
opacity: .5;
color: inherit;
background-color: transparent;
cursor: not-allowed;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/radios/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
// Disabled state
.govuk-radios__input:disabled,
.govuk-radios__input:disabled + .govuk-radios__label {
cursor: default;
cursor: not-allowed;
}

.govuk-radios__input:disabled + .govuk-radios__label,
Expand Down
1 change: 1 addition & 0 deletions src/govuk/components/select/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
&:disabled {
opacity: .5;
color: inherit;
cursor: not-allowed;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/govuk/components/textarea/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
opacity: .5;
color: inherit;
background-color: transparent;
cursor: not-allowed;
}
}

Expand Down

0 comments on commit 1f98862

Please sign in to comment.