Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmacknz committed Oct 22, 2024
1 parent 01881f0 commit d150600
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
24 changes: 12 additions & 12 deletions packages/components/src/TextArea/TextArea.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@
}

.default {
&:focus:not([disabled]),
&:hover:not([disabled]),
&:hover:focus:not([disabled]) {
background-color: var(--color-gray-200);
border-color: var(--color-gray-600);
}

&:not(.error, .caution) {
&:disabled {
border-color: rgba(
Expand All @@ -73,6 +66,13 @@
}
}

&:focus:not([disabled]),
&:hover:not([disabled]),
&:hover:focus:not([disabled]) {
background-color: var(--color-gray-200);
border-color: var(--color-gray-600);
}

&.error {
border-color: var(--color-red-500);

Expand All @@ -84,7 +84,7 @@
}

&.caution {
border-color: var(---color-yellow-600);
border-color: var(--color-yellow-600);

&:focus:not([disabled]),
&:hover:not([disabled]),
Expand All @@ -105,17 +105,17 @@
background: transparent;
color: var(--color-white);

&:focus {
outline-color: var(--color-blue-300);
}

&:focus:not([disabled]),
&:hover:not([disabled]),
&:hover:focus:not([disabled]) {
background: rgba(var(--color-white-rgb), 0.1);
border-color: var(--color-white);
}

&:focus {
outline-color: var(--color-blue-300);
}

&.error {
border-color: var(--color-red-300);

Expand Down
4 changes: 1 addition & 3 deletions packages/components/styles/utils/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ $input-placeholder-line-height: 2.9rem;
}

@mixin form-input-placeholder() {
&::-webkit-input-placeholder,
&:-moz-placeholder,
&:-ms-input-placeholder {
&::placeholder {
font-family: $typography-paragraph-body-font-family;
font-size: $typography-paragraph-body-font-size;
font-weight: $typography-paragraph-body-font-weight;
Expand Down

0 comments on commit d150600

Please sign in to comment.