Skip to content

Commit 4d25a4a

Browse files
committed
Remove letter spacing
Remove padding on alert content without close
1 parent f99e8fd commit 4d25a4a

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

design-library/src/components/BccAlert/BccAlert.css

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@
1313
}
1414

1515
/* Close button */
16-
.bcc-alert-close-button {
17-
@apply absolute right-4 top-4;
18-
}
1916
.bcc-alert-close-icon {
20-
@apply h-4 w-4;
17+
@apply size-4;
2118
}
2219

2320
/* Title */
2421
.bcc-alert-title {
2522
@apply text-heading-sm;
2623
}
27-
28-
/* Content */
29-
.bcc-alert-content {
30-
@apply pr-4;
31-
}
3224
}

design-library/src/components/BccAlert/BccAlert.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const ContextIcons: Partial<Record<keyof typeof BCC_CONTEXTS, VueComponent>> = {
5757
<button
5858
@click.prevent="emit('close')"
5959
v-if="closeButton"
60+
tabindex="-1"
6061
aria-label="Close alert"
6162
class="bcc-alert-close-button"
6263
>

design-library/src/css/typography.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.text-title-xs {
77
font-weight: 700;
88
line-height: 1.2em;
9-
letter-spacing: 0.025em;
109
}
1110
.text-title-xl {
1211
font-size: 2.5rem;
@@ -31,7 +30,6 @@
3130
.text-heading-xs {
3231
font-weight: 600;
3332
line-height: 1.5em;
34-
letter-spacing: 0.025em;
3533
}
3634

3735
.text-heading-xl {
@@ -56,7 +54,6 @@
5654
.text-body-xs {
5755
font-weight: 400;
5856
line-height: 1.5em;
59-
letter-spacing: 0.025em;
6057
}
6158

6259
.text-body-lg {
@@ -78,7 +75,6 @@
7875
.text-caption-xs {
7976
font-weight: 400;
8077
line-height: 1.5em;
81-
letter-spacing: 0.025em;
8278
}
8379

8480
.text-label-lg,
@@ -87,7 +83,6 @@
8783
.text-label-xs {
8884
font-weight: 600;
8985
line-height: 1.5em;
90-
letter-spacing: 0.025em;
9186
}
9287

9388
.text-caption-lg,

0 commit comments

Comments
 (0)