Skip to content

Commit

Permalink
fix(ld-modal): hide displaced focus outlines
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Jul 19, 2022
1 parent 53cd4e0 commit 3ea2f75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/liquid/components/ld-modal/ld-modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ dialog.ld-modal--blurry-backdrop,
margin: var(--ld-sp-8) calc(var(--ld-sp-8) * -1) var(--ld-sp-8) auto;
position: relative;
width: var(--ld-sp-32);
overflow: hidden;

&::before,
&::after {
Expand Down
8 changes: 4 additions & 4 deletions src/liquid/components/ld-modal/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialo

Here is a minimalistic example of a modal dialog:

{% example %}
{% example '{ "styles": { "overflow": "visible", "will-change": "initial" } }' %}
<ld-modal>
<ld-typo style="text-align: center">
I'm a modal dialog.
Expand Down Expand Up @@ -60,7 +60,7 @@ Here is a minimalistic example of a modal dialog:

You have two additional slots to your disposal for altering the modal header and footer which are both positioned fixed at top and bottom of the dialog element.

{% example %}
{% example '{ "styles": { "overflow": "visible", "will-change": "initial" } }' %}
<ld-modal>
<ld-typo slot="header">Hello</ld-typo>
<ld-typo style="text-align: center">
Expand Down Expand Up @@ -99,7 +99,7 @@ You have two additional slots to your disposal for altering the modal header and

### Non-cancelable

{% example %}
{% example '{ "styles": { "overflow": "visible", "will-change": "initial" } }' %}
<ld-modal cancelable="false">
<ld-typo slot="header">Hello</ld-typo>
<ld-typo style="text-align: center">
Expand Down Expand Up @@ -131,7 +131,7 @@ You have two additional slots to your disposal for altering the modal header and

### With blurry backdrop

{% example %}
{% example '{ "styles": { "overflow": "visible", "will-change": "initial" } }' %}
<ld-modal blurry-backdrop>
<ld-typo style="text-align: center">
I'm a modal dialog.
Expand Down

0 comments on commit 3ea2f75

Please sign in to comment.