Skip to content

Commit

Permalink
fix(styles): change request
Browse files Browse the repository at this point in the history
  • Loading branch information
davidritter-dotcom committed Jul 11, 2024
1 parent 52b825d commit 5023640
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/styles/src/components/floating-label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

&:disabled {
~ label {
color: forms.$input-disabled-color;
color: var(--post-gray-60);
}
}

Expand Down Expand Up @@ -133,7 +133,7 @@

&:disabled {
~ label {
color: forms.$input-disabled-color;
color: var(--post-gray-60);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/components/form-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

@include utilities.disabled-style {
~ .form-text {
color: var(--post-gray-40);
color: var(--post-gray-60);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/styles/src/components/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ select.form-control-rg:not([size]):not([multiple]) {
border: forms.$input-disabled-border-style;

~ .form-text {
color: forms.$input-disabled-color;
color: var(--post-gray-60);
}

@include utilities.high-contrast-mode {
Expand Down Expand Up @@ -220,6 +220,6 @@ select.form-control-rg:not([size]):not([multiple]) {
}

&:has(+ .form-control[disabled], + .form-select[disabled]) {
color: forms.$input-disabled-color;
color: var(--post-gray-60);
}
}
2 changes: 1 addition & 1 deletion packages/styles/src/mixins/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
@mixin disabled-style($additional-selector: '') {
&:disabled#{$additional-selector} {
pointer-events: none;
color: var(--post-gray-40);
color: var(--post-gray-60);
border-color: var(--post-gray-40);
border-style: dashed;
background-clip: padding-box;
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/variables/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $input-line-height-lg: type.$line-height-copy !default;

$input-bg: color.$white !default;
$input-disabled-bg: rgba(var(--post-contrast-color-inverted-rgb), 0.4) !default;
$input-disabled-color: rgba(var(--post-contrast-color-rgb), 0.6); // Design System only
$input-disabled-color: color.$gray-40; // Design System only
$input-disabled-border-color: color.$gray-40; // Design System only
$input-disabled-border-style: spacing.$size-line dashed;

Expand Down

0 comments on commit 5023640

Please sign in to comment.