diff --git a/packages/css/src/components/avatar/avatar.scss b/packages/css/src/components/avatar/avatar.scss index 36b17f68a1..eb5f47e9f5 100644 --- a/packages/css/src/components/avatar/avatar.scss +++ b/packages/css/src/components/avatar/avatar.scss @@ -20,6 +20,15 @@ } } +.ams-avatar:not(.ams-avatar--has-image) { + @media (forced-colors: active) { + border-style: solid; + border-width: var(--ams-avatar-forced-colors-border-width); + padding-block: calc(var(--ams-avatar-padding-block) - var(--ams-avatar-forced-colors-border-width)); + padding-inline: calc(var(--ams-avatar-padding-inline) - var(--ams-avatar-forced-colors-border-width)); + } +} + .ams-avatar--has-image { inline-size: calc(var(--ams-avatar-line-height) * var(--ams-avatar-font-size) + 2 * var(--ams-avatar-padding-inline)); overflow: hidden; diff --git a/packages/css/src/components/dialog/README.md b/packages/css/src/components/dialog/README.md index 4f03235889..0feaf32050 100644 --- a/packages/css/src/components/dialog/README.md +++ b/packages/css/src/components/dialog/README.md @@ -27,8 +27,7 @@ Also, this approach keeps the order of buttons consistent on both narrow and wid ## Closing Dialog without submit -You can close a Dialog without submitting by using ` - @@ -67,7 +67,7 @@ export const Default: Story = { export const WithScrollbar: Story = { args: { - actions: , + actions: , children: [ Algemeen @@ -125,7 +125,7 @@ export const TriggerButton: Story = { decorators: [ (Story) => (
- +
), @@ -137,7 +137,7 @@ export const VerticalButtons: Story = { actions: ( <> - diff --git a/storybook/src/styles/overrides.css b/storybook/src/styles/overrides.css index eaa723f07a..5e635314ab 100644 --- a/storybook/src/styles/overrides.css +++ b/storybook/src/styles/overrides.css @@ -117,3 +117,10 @@ :is(#storybook-root, .sbdocs-content) a[href="#"] { cursor: not-allowed; } + +/* Override to make sure the default transparent border isn't shown in forced colors mode. */ +.innerZoomElementWrapper.innerZoomElementWrapper > div { + @media (forced-colors: active) { + border-color: Canvas !important; + } +}