Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@

&--disabled & {
&__label {
opacity: 0.5;
cursor: not-allowed;
}
}
Expand Down
10 changes: 0 additions & 10 deletions packages/components/src/components/@shared/_form-field.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
align-items: flex-start;
justify-content: flex-start;
}

#{$root}--disabled & {
opacity: 0.5;
}
}

&--required {
Expand All @@ -28,11 +24,5 @@
content: '*' / '';
}
}

&__hint {
#{$root}--disabled & {
opacity: 0.5;
}
}
}
}
1 change: 0 additions & 1 deletion packages/components/src/components/@shared/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
[aria-disabled='true']:focus,
[disabled],
[disabled]:focus {
opacity: 0.5;
outline: none;
cursor: not-allowed;
}
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/components/input-radio/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
}

&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/components/single-select/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,5 @@
&:not(&--disabled) {
cursor: pointer;
}

&--disabled {
opacity: 0.5;
}
}
}
3 changes: 1 addition & 2 deletions packages/themes/bwst/src/components/input-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
}

.kol-input {
background-color: transparent;
padding-top: calc(0.5em + to-rem(2));
opacity: 0;
}
}
1 change: 1 addition & 0 deletions packages/themes/bwst/src/components/input-radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
}

&:disabled {
opacity: 0.5;
background-color: var(--color-mute-variant);
}
}
Expand Down
9 changes: 9 additions & 0 deletions packages/themes/bwst/src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,13 @@
transform: rotate(360deg);
}
}

.disabled label,
.disabled:focus-within label,
[aria-disabled='true'],
[aria-disabled='true']:focus,
[disabled],
[disabled]:focus {
opacity: 0.5;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
&:focus {
outline: 0;
}

&--disabled {
opacity: 0.5;
}
}
}
6 changes: 6 additions & 0 deletions packages/themes/bwst/src/mixins/field-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

font-weight: normal;
}

&--disabled & {
&__label {
opacity: 0.5;
}
}
}

/**{
Expand Down
7 changes: 7 additions & 0 deletions packages/themes/bwst/src/mixins/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
}
}

&--disabled & {
&__label,
&__hint {
opacity: 0.5;
}
}

&__hint {
@include kol-typography-hint;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/themes/default/src/components/input-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
}

.kol-input {
background-color: transparent;
padding-top: calc(0.5em + to-rem(2));
opacity: 0;
}
}
1 change: 1 addition & 0 deletions packages/themes/default/src/components/input-radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
}

&:disabled {
opacity: 0.5;
background-color: var(--color-mute-variant);
}
}
Expand Down
9 changes: 9 additions & 0 deletions packages/themes/default/src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,13 @@
transform: rotate(360deg);
}
}

.disabled label,
.disabled:focus-within label,
[aria-disabled='true'],
[aria-disabled='true']:focus,
[disabled],
[disabled]:focus {
opacity: 0.5;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
&:focus {
outline: 0;
}

&--disabled {
opacity: 0.5;
}
}
}
6 changes: 6 additions & 0 deletions packages/themes/default/src/mixins/field-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
}
}
}

&--disabled & {
&__label {
opacity: 0.5;
}
}
}
}
7 changes: 7 additions & 0 deletions packages/themes/default/src/mixins/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
}
}

&--disabled & {
&__label,
&__hint {
opacity: 0.5;
}
}

&__hint {
@include kol-typography-hint;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/themes/kern/src/components/input-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@layer kol-theme-component {
@include input-core;
.kol-input {
opacity: 0 !important;
opacity: 0;
}

.kol-input-container {
Expand Down
9 changes: 9 additions & 0 deletions packages/themes/kern/src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@
blockquote {
margin: var(--kern-metric-space-small) var(--kern-metric-space-large);
}

.disabled label,
.disabled:focus-within label,
[aria-disabled='true'],
[aria-disabled='true']:focus,
[disabled],
[disabled]:focus {
opacity: var(--action-state-opacity-disabled, 0.4);
}
}
6 changes: 6 additions & 0 deletions packages/themes/kern/src/mixins/_field-control.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,11 @@
}
}
}

&--disabled & {
&__label {
opacity: var(--action-state-opacity-disabled, 0.4);
}
}
}
}
12 changes: 6 additions & 6 deletions packages/themes/kern/src/mixins/_form-field.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

font-family: var(--kern-typography-font-family-default);

&--read-only &__label,
&--disabled &__label {
opacity: 1;
cursor: not-allowed;
}

&__label {
color: var(--kern-color-layout-text-default);

Expand Down Expand Up @@ -81,6 +75,12 @@
}
}

&--disabled & {
&__label {
opacity: var(--action-state-opacity-disabled, 0.4);
}
}

&--error {
padding-left: var(--kern-metric-space-default);
border-left: var(--kern-metric-border-width-bold) solid var(--kern-color-feedback-danger);
Expand Down
1 change: 0 additions & 1 deletion packages/themes/kern/src/mixins/_input-core.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
}

&:disabled {
opacity: 1;
color: var(--color-black-60);

&::placeholder {
Expand Down
2 changes: 0 additions & 2 deletions packages/themes/kern/src/mixins/_pagination.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
--button-text-border-color: var(--kern-color-action-default);
--button-text-color: var(--kern-color-action-on-default);
--button-badge-color: var(--button-text-background-color);

opacity: 1;
}

&__separator {
Expand Down
Loading