diff --git a/packages/core/src/components/editable-text/_editable-text.scss b/packages/core/src/components/editable-text/_editable-text.scss index 0133dcac7b..e50137f3fa 100644 --- a/packages/core/src/components/editable-text/_editable-text.scss +++ b/packages/core/src/components/editable-text/_editable-text.scss @@ -31,14 +31,11 @@ box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus; } - &.#{$ns}-disabled::before { - box-shadow: none; - } - @each $intent, $color in $pt-intent-colors { &.#{$ns}-intent-#{$intent} { + .#{$ns}-editable-text-content, .#{$ns}-editable-text-input, - .#{$ns}-editable-text-content { + .#{$ns}-editable-text-input::placeholder { color: $color; } @@ -70,7 +67,9 @@ @each $intent, $color in $pt-dark-intent-text-colors { &.#{$ns}-intent-#{$intent} { - .#{$ns}-editable-text-content { + .#{$ns}-editable-text-content, + .#{$ns}-editable-text-input, + .#{$ns}-editable-text-input::placeholder { color: $color; } @@ -84,6 +83,12 @@ } } } + + &.#{$ns}-disabled::before { + // override intent + dark theme selectors + /* stylelint-disable-next-line declaration-no-important */ + box-shadow: none !important; + } } .#{$ns}-editable-text-input,