Skip to content

Commit

Permalink
fix(): bal-modal isClosable now hides close on top, fixes #806
Browse files Browse the repository at this point in the history
  • Loading branch information
nobilo committed Oct 28, 2022
1 parent edaff93 commit 122e90a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ export class ModalHeader {
<slot></slot>
</h2>
</div>
<bal-close class="bal-modal__header__close data-test-modal-close" onClick={this.closeHandler}></bal-close>
<bal-close
class={{
'bal-modal__header__close': true,
'data-test-modal-close': true,
'bal-modal__header--is-closable': !!this.parentModal?.isClosable,
}}
onClick={this.closeHandler}
></bal-close>
</Host>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ $modal-breakpoint: $tablet !default
padding-right: 2.5rem
line-height: 2rem
+element(close)
display: none
position: absolute
right: 20px
top: 24px
min-width: 2rem
max-width: 2rem
min-height: 2rem
max-height: 2rem
+modifier(is-closable)
display: block !important

+element(container)
position: fixed
Expand Down

0 comments on commit 122e90a

Please sign in to comment.