-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(alertbanner): spectrum 2 spacing and mod name cleanup
Adjust some spacings to match the Spectrum 2 spec spacing. And renames some mods so they are more consistent with current naming conventions, and their purpose is more clear. === Update spacing to match the Spectrum 2 spec === One issue with the S1 version was that there was too much space between the text and the button, when the button wrapped to the next line. And there was a different token defined for the space from the bottom edge to the text, and vertically between the button and the text. This helps resolve this by moving some of the spacing to padding on the AlertBanner-body, and subtracting this value from some of the other custom properties. Along with using both column-gap and row-gap properties.
- Loading branch information
Showing
4 changed files
with
141 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
| Modifiable custom properties | | ||
| ---------------------------------------------- | | ||
| `--mod-alert-banner-background` | | ||
| `--mod-alert-banner-bottom-text` | | ||
| `--mod-alert-banner-close-button-spacing` | | ||
| `--mod-alert-banner-edge-to-button` | | ||
| `--mod-alert-banner-edge-to-divider` | | ||
| `--mod-alert-banner-font-color` | | ||
| `--mod-alert-banner-font-size` | | ||
| `--mod-alert-banner-icon-size` | | ||
| `--mod-alert-banner-icon-to-text` | | ||
| `--mod-alert-banner-informative-background` | | ||
| `--mod-alert-banner-min-height` | | ||
| `--mod-alert-banner-negative-background` | | ||
| `--mod-alert-banner-neutral-background` | | ||
| `--mod-alert-banner-size` | | ||
| `--mod-alert-banner-start-edge` | | ||
| `--mod-alert-banner-text-to-button-horizontal` | | ||
| `--mod-alert-banner-text-to-button-vertical` | | ||
| `--mod-alert-banner-text-to-divider` | | ||
| `--mod-alert-banner-top-icon` | | ||
| `--mod-alert-banner-top-text` | | ||
| Modifiable custom properties | | ||
| ----------------------------------------------- | | ||
| `--mod-alert-banner-background` | | ||
| `--mod-alert-banner-block-edge-to-button` | | ||
| `--mod-alert-banner-bottom-to-text` | | ||
| `--mod-alert-banner-close-button-to-content` | | ||
| `--mod-alert-banner-close-button-to-inline-end` | | ||
| `--mod-alert-banner-font-color` | | ||
| `--mod-alert-banner-font-size` | | ||
| `--mod-alert-banner-icon-size` | | ||
| `--mod-alert-banner-icon-to-text` | | ||
| `--mod-alert-banner-informative-background` | | ||
| `--mod-alert-banner-inline-size` | | ||
| `--mod-alert-banner-inline-start-to-content` | | ||
| `--mod-alert-banner-line-height` | | ||
| `--mod-alert-banner-min-height` | | ||
| `--mod-alert-banner-negative-background` | | ||
| `--mod-alert-banner-neutral-background` | | ||
| `--mod-alert-banner-text-margin-block-end` | | ||
| `--mod-alert-banner-text-margin-block-start` | | ||
| `--mod-alert-banner-text-to-button-horizontal` | | ||
| `--mod-alert-banner-text-to-button-vertical` | | ||
| `--mod-alert-banner-top-to-close-button` | | ||
| `--mod-alert-banner-top-to-icon` | | ||
| `--mod-alert-banner-top-to-text` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters