diff --git a/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap b/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap index 472f7fa6d35..ee59440f1dd 100644 --- a/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap @@ -307,12 +307,6 @@ html[data-whatinput=keyboard] .dnb-checkbox__focus { vertical-align: top; margin-top: 0.5rem; } -.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button { - border-color: var(--skeleton-color); -} -.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button::before { - border-radius: 0; -} .dnb-checkbox__input:checked ~ .dnb-checkbox__gfx, .dnb-checkbox__input[data-checked=true] ~ .dnb-checkbox__gfx { opacity: 1; transform: scale(1); @@ -400,6 +394,15 @@ html[data-whatinput=keyboard] .dnb-checkbox__status--error .dnb-checkbox__input: } .dnb-checkbox__status--error .dnb-checkbox__input:not([disabled]):not(:active):not(:hover):checked ~ .dnb-checkbox__button, .dnb-checkbox__status--error .dnb-checkbox__input:not([disabled]):not(:active):not(:hover)[data-checked=true] ~ .dnb-checkbox__button { background-color: var(--checkbox-color-background-on--error); +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button { + border-color: var(--skeleton-color); +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button::before { + border-radius: 0; +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__gfx { + color: var(--skeleton-color); }" `; diff --git a/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.tsx.snap b/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.tsx.snap index 82dde5bb2b0..9455c51e26e 100644 --- a/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.tsx.snap @@ -2728,12 +2728,6 @@ html[data-whatinput=keyboard] .dnb-checkbox__focus { vertical-align: top; margin-top: 0.5rem; } -.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button { - border-color: var(--skeleton-color); -} -.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button::before { - border-radius: 0; -} .dnb-checkbox__input:checked ~ .dnb-checkbox__gfx, .dnb-checkbox__input[data-checked=true] ~ .dnb-checkbox__gfx { opacity: 1; transform: scale(1); @@ -2822,6 +2816,15 @@ html[data-whatinput=keyboard] .dnb-checkbox__status--error .dnb-checkbox__input: .dnb-checkbox__status--error .dnb-checkbox__input:not([disabled]):not(:active):not(:hover):checked ~ .dnb-checkbox__button, .dnb-checkbox__status--error .dnb-checkbox__input:not([disabled]):not(:active):not(:hover)[data-checked=true] ~ .dnb-checkbox__button { background-color: var(--checkbox-color-background-on--error); } +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button { + border-color: var(--skeleton-color); +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button::before { + border-radius: 0; +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__gfx { + color: var(--skeleton-color); +} /* * Used for snapshot testing @@ -3183,9 +3186,6 @@ html[data-whatinput=keyboard] .dnb-radio__focus { .dnb-radio-group .dnb-flex-container::before { font-size: var(--font-size-basis); } -.dnb-skeleton .dnb-radio__input[disabled] ~ .dnb-radio__button { - border-color: var(--skeleton-color); -} .dnb-radio__input:checked ~ .dnb-radio__button, .dnb-radio__input[data-checked=true] ~ .dnb-radio__button { background-color: var(--radio-color-background-on); border-color: var(--radio-color-border-on); @@ -3208,9 +3208,15 @@ html[data-whatinput=keyboard] .dnb-radio__focus { .dnb-radio__input[disabled]:checked ~ .dnb-radio__dot, .dnb-radio__input[disabled][data-checked=true] ~ .dnb-radio__dot { background-color: var(--radio-color-dot-on--disabled); } -.dnb-radio__input[disabled]:not(:checked):not([data-checked=true]) ~ .dnb-radio__button { +.dnb-radio__input[disabled]:not(:checked):not([data-checked=true]) ~ .dnb-radio__button:not(.dnb-skeleton) { border-color: var(--radio-color-border-off--disabled); } +.dnb-radio__input[disabled] ~ .dnb-radio__button.dnb-skeleton { + border-color: var(--skeleton-color); +} +.dnb-radio__input[disabled] ~ .dnb-radio__button.dnb-skeleton::before { + border-radius: 0; +} .dnb-radio__input:not([disabled]):checked:active ~ .dnb-radio__button, .dnb-radio__input:not([disabled])[data-checked=true]:active ~ .dnb-radio__button { border-color: var(--radio-color-border-on--active); } diff --git a/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.tsx.snap b/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.tsx.snap index 157e804bfe4..ab71fedc556 100644 --- a/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.tsx.snap @@ -361,9 +361,6 @@ html[data-whatinput=keyboard] .dnb-radio__focus { .dnb-radio-group .dnb-flex-container::before { font-size: var(--font-size-basis); } -.dnb-skeleton .dnb-radio__input[disabled] ~ .dnb-radio__button { - border-color: var(--skeleton-color); -} .dnb-radio__input:checked ~ .dnb-radio__button, .dnb-radio__input[data-checked=true] ~ .dnb-radio__button { background-color: var(--radio-color-background-on); border-color: var(--radio-color-border-on); @@ -386,9 +383,15 @@ html[data-whatinput=keyboard] .dnb-radio__focus { .dnb-radio__input[disabled]:checked ~ .dnb-radio__dot, .dnb-radio__input[disabled][data-checked=true] ~ .dnb-radio__dot { background-color: var(--radio-color-dot-on--disabled); } -.dnb-radio__input[disabled]:not(:checked):not([data-checked=true]) ~ .dnb-radio__button { +.dnb-radio__input[disabled]:not(:checked):not([data-checked=true]) ~ .dnb-radio__button:not(.dnb-skeleton) { border-color: var(--radio-color-border-off--disabled); } +.dnb-radio__input[disabled] ~ .dnb-radio__button.dnb-skeleton { + border-color: var(--skeleton-color); +} +.dnb-radio__input[disabled] ~ .dnb-radio__button.dnb-skeleton::before { + border-radius: 0; +} .dnb-radio__input:not([disabled]):checked:active ~ .dnb-radio__button, .dnb-radio__input:not([disabled])[data-checked=true]:active ~ .dnb-radio__button { border-color: var(--radio-color-border-on--active); } diff --git a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-horizontal.snap.png b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-horizontal.snap.png index a0e1633f683..76ba821df12 100644 Binary files a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-horizontal.snap.png and b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-horizontal.snap.png differ diff --git a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-vertical.snap.png b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-vertical.snap.png index 95e2a33f3d9..9851fa3bb3d 100644 Binary files a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-vertical.snap.png and b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-sbanken-have-to-match-all-components-vertical.snap.png differ diff --git a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-horizontal.snap.png b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-horizontal.snap.png index 1aaa9444038..9ff7cc114b8 100644 Binary files a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-horizontal.snap.png and b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-horizontal.snap.png differ diff --git a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-vertical.snap.png b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-vertical.snap.png index c26d1f130b5..cd95bf00818 100644 Binary files a/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-vertical.snap.png and b/packages/dnb-eufemia/src/components/skeleton/__tests__/__image_snapshots__/skeleton-for-ui-have-to-match-all-components-vertical.snap.png differ diff --git a/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.tsx.snap b/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.tsx.snap index a4efa227886..90ace842834 100644 --- a/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.tsx.snap @@ -910,12 +910,6 @@ html[data-whatinput=keyboard] .dnb-checkbox__focus { vertical-align: top; margin-top: 0.5rem; } -.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button { - border-color: var(--skeleton-color); -} -.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button::before { - border-radius: 0; -} .dnb-checkbox__input:checked ~ .dnb-checkbox__gfx, .dnb-checkbox__input[data-checked=true] ~ .dnb-checkbox__gfx { opacity: 1; transform: scale(1); @@ -1004,6 +998,15 @@ html[data-whatinput=keyboard] .dnb-checkbox__status--error .dnb-checkbox__input: .dnb-checkbox__status--error .dnb-checkbox__input:not([disabled]):not(:active):not(:hover):checked ~ .dnb-checkbox__button, .dnb-checkbox__status--error .dnb-checkbox__input:not([disabled]):not(:active):not(:hover)[data-checked=true] ~ .dnb-checkbox__button { background-color: var(--checkbox-color-background-on--error); } +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button { + border-color: var(--skeleton-color); +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__button::before { + border-radius: 0; +} +.dnb-checkbox.dnb-skeleton .dnb-checkbox__input[disabled] ~ .dnb-checkbox__gfx { + color: var(--skeleton-color); +} /* * Used for snapshot testing @@ -1365,9 +1368,6 @@ html[data-whatinput=keyboard] .dnb-radio__focus { .dnb-radio-group .dnb-flex-container::before { font-size: var(--font-size-basis); } -.dnb-skeleton .dnb-radio__input[disabled] ~ .dnb-radio__button { - border-color: var(--skeleton-color); -} .dnb-radio__input:checked ~ .dnb-radio__button, .dnb-radio__input[data-checked=true] ~ .dnb-radio__button { background-color: var(--radio-color-background-on); border-color: var(--radio-color-border-on); @@ -1390,9 +1390,15 @@ html[data-whatinput=keyboard] .dnb-radio__focus { .dnb-radio__input[disabled]:checked ~ .dnb-radio__dot, .dnb-radio__input[disabled][data-checked=true] ~ .dnb-radio__dot { background-color: var(--radio-color-dot-on--disabled); } -.dnb-radio__input[disabled]:not(:checked):not([data-checked=true]) ~ .dnb-radio__button { +.dnb-radio__input[disabled]:not(:checked):not([data-checked=true]) ~ .dnb-radio__button:not(.dnb-skeleton) { border-color: var(--radio-color-border-off--disabled); } +.dnb-radio__input[disabled] ~ .dnb-radio__button.dnb-skeleton { + border-color: var(--skeleton-color); +} +.dnb-radio__input[disabled] ~ .dnb-radio__button.dnb-skeleton::before { + border-radius: 0; +} .dnb-radio__input:not([disabled]):checked:active ~ .dnb-radio__button, .dnb-radio__input:not([disabled])[data-checked=true]:active ~ .dnb-radio__button { border-color: var(--radio-color-border-on--active); }