Skip to content

Commit 72081fa

Browse files
committed
Remove configurable font weight of links inside Alert #577
Links in `Alert` now inherit the font weight which is consistent with other links in React UI.
1 parent bac1e21 commit 72081fa

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

src/components/Alert/Alert.module.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
padding: theme.$padding;
2626
}
2727

28-
.close,
29-
.icon {
28+
.icon,
29+
.close {
3030
height: settings.$min-height;
3131
color: var(--rui-local-foreground-color);
3232
}
@@ -46,11 +46,8 @@
4646
line-height: settings.$line-height;
4747
}
4848

49-
.message :is(a, strong) {
50-
font-weight: theme.$emphasis-font-weight;
51-
}
52-
5349
.message strong {
50+
font-weight: theme.$emphasis-font-weight;
5451
color: var(--rui-local-foreground-color);
5552
}
5653

src/components/Alert/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ helps to improve its accessibility.
201201

202202
### Common Theming Options
203203

204-
| Custom Property | Description |
205-
|------------------------------------------------------|--------------------------------------------------------------|
206-
| `--rui-Alert__padding` | Padding between border and message |
207-
| `--rui-Alert__font-weight` | Message font weight |
208-
| `--rui-Alert__border-width` | Border width |
209-
| `--rui-Alert__border-radius` | Corner radius |
210-
| `--rui-Alert__emphasis__font-weight` | Font weight of text emphasised with `<strong>` |
211-
| `--rui-Alert__stripe__width` | Width of the border at the start of the Alert |
204+
| Custom Property | Description |
205+
|--------------------------------------|------------------------------------------------|
206+
| `--rui-Alert__padding` | Padding between border and message |
207+
| `--rui-Alert__font-weight` | Message font weight |
208+
| `--rui-Alert__border-width` | Border width |
209+
| `--rui-Alert__border-radius` | Corner radius |
210+
| `--rui-Alert__emphasis__font-weight` | Font weight of text emphasised with `<strong>` |
211+
| `--rui-Alert__stripe__width` | Width of the border at the start of the Alert |
212212

213213
### Theming Variants
214214

0 commit comments

Comments
 (0)