forked from CGM_Public/pretix_original
[A11y] move lightbox to native dialog (#5137)
* [A11y] move lightbox to native dialog * fix width-sizing-issue * move button label to aria-label * increase padding for lightbox, so button does not overlay image * Remove unused JS * add close on backdrop-click --------- Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
committed by
GitHub
parent
6e306055cb
commit
37af6edeab
@@ -354,3 +354,26 @@ dialog[open], dialog[open]::backdrop {
|
||||
80% { transform: skewX(5deg); }
|
||||
100% { transform: skewX(0deg); }
|
||||
}
|
||||
|
||||
#lightbox-dialog {
|
||||
width: fit-content;
|
||||
max-width: 80%;
|
||||
min-width: 24em;
|
||||
.modal-card-content {
|
||||
padding: 2.5em;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
button {
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
}
|
||||
figcaption {
|
||||
margin-top: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user