Skip to content

Commit 501f0d7

Browse files
authored
fix(modal): increase modal close button style specificity (#1776)
1 parent 1cc0b74 commit 501f0d7

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.changeset/open-plants-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@launchpad-ui/modal": patch
3+
---
4+
5+
Increase modal close button style specificity

packages/modal/src/styles/Modal.module.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@
5050
flex-direction: column;
5151
gap: 0.25rem;
5252
padding: 1rem;
53+
54+
& > .headerMain {
55+
display: flex;
56+
gap: 0.5rem;
57+
align-items: flex-start;
58+
59+
& > .closeButton {
60+
margin-left: auto;
61+
transform: translateY(-1px);
62+
}
63+
}
5364
}
5465

5566
.title {
@@ -66,12 +77,6 @@
6677
fill: var(--lp-color-brand-yellow-dark);
6778
}
6879

69-
.headerMain {
70-
display: flex;
71-
gap: 0.5rem;
72-
align-items: flex-start;
73-
}
74-
7580
.headerDescription {
7681
font-size: 0.875rem;
7782
color: var(--lp-color-text-ui-secondary);
@@ -88,11 +93,6 @@
8893
color: var(--lp-color-text-feedback-error);
8994
}
9095

91-
.closeButton {
92-
margin-left: auto;
93-
transform: translateY(-1px);
94-
}
95-
9696
.body {
9797
padding: 0 1rem;
9898
font-size: 0.9375rem;

0 commit comments

Comments
 (0)