Skip to content

Commit 7bc8444

Browse files
fix: make sure text styles are not inherited from external container and correct cursor type on overlay
1 parent 75f0948 commit 7bc8444

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/components/bolt-modal/modal.schema.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ properties:
2525
description: Controls the width of the modal container.
2626
default: optimal
2727
enum:
28-
- auto
28+
- full
2929
- regular
3030
- optimal
31-
- full
31+
- auto
3232
spacing:
3333
type: string
3434
description: Controls the spacing around the modal container.

packages/components/bolt-modal/src/modal.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ bolt-modal:not([ready]) {
4646

4747
.c-bolt-modal {
4848
@include bolt-z-index(modal);
49+
@include bolt-font-family(body);
50+
@include bolt-font-size(medium);
51+
@include bolt-font-weight(regular);
4952

5053
display: block;
5154
opacity: bolt-opacity(0);
@@ -61,6 +64,7 @@ bolt-modal:not([ready]) {
6164

6265
&.is-open {
6366
opacity: bolt-opacity(100);
67+
cursor: pointer;
6468
pointer-events: auto;
6569
overflow-y: auto;
6670
-webkit-overflow-scrolling: touch;
@@ -163,9 +167,10 @@ bolt-modal:not([ready]) {
163167
}
164168

165169
@at-root .c-bolt-modal.is-open #{&} {
170+
cursor: auto;
171+
166172
@include bolt-mq($bolt-modal-breakpoint) {
167173
visibility: visible;
168-
cursor: auto;
169174
transition: visibility 0s $bolt-transition-ease 0s;
170175
}
171176
}

0 commit comments

Comments
 (0)