Skip to content

Commit

Permalink
Remove configurable font weight of links inside Alert #577
Browse files Browse the repository at this point in the history
Links in `Alert` now inherit the font weight which is consistent
with other links in React UI.
  • Loading branch information
adamkudrna committed Dec 6, 2024
1 parent f77cded commit 6e6b321
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
9 changes: 3 additions & 6 deletions src/components/Alert/Alert.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
padding: theme.$padding;
}

.close,
.icon {
.icon,
.close {
height: settings.$min-height;
color: var(--rui-local-foreground-color);
}
Expand All @@ -46,11 +46,8 @@
line-height: settings.$line-height;
}

.message :is(a, strong) {
font-weight: theme.$emphasis-font-weight;
}

.message strong {
font-weight: theme.$emphasis-font-weight;
color: var(--rui-local-foreground-color);
}

Expand Down
16 changes: 8 additions & 8 deletions src/components/Alert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ helps to improve its accessibility.

### Common Theming Options

| Custom Property | Description |
|------------------------------------------------------|--------------------------------------------------------------|
| `--rui-Alert__padding` | Padding between border and message |
| `--rui-Alert__font-weight` | Message font weight |
| `--rui-Alert__border-width` | Border width |
| `--rui-Alert__border-radius` | Corner radius |
| `--rui-Alert__emphasis__font-weight` | Font weight of text emphasised with `<strong>` |
| `--rui-Alert__stripe__width` | Width of the border at the start of the Alert |
| Custom Property | Description |
|--------------------------------------|------------------------------------------------|
| `--rui-Alert__padding` | Padding between border and message |
| `--rui-Alert__font-weight` | Message font weight |
| `--rui-Alert__border-width` | Border width |
| `--rui-Alert__border-radius` | Corner radius |
| `--rui-Alert__emphasis__font-weight` | Font weight of text emphasised with `<strong>` |
| `--rui-Alert__stripe__width` | Width of the border at the start of the Alert |

### Theming Variants

Expand Down

0 comments on commit 6e6b321

Please sign in to comment.