Fix/book 115 hidden focus indicators * added focus ring to "how it works" text and close button in modal * fix(BOOK-115): added focus ring to Hotel Sidepeek close button * fix(BOOK-115): enabled selecting ancillaries with keyboard nav * fix(BOOK-115): added focus indicator to "View and print receipt" in Manage Stay * fix(BOOK-105 & BOOK-115): combined the two radio groups in payment selection to one, fixes focus indicator issue * fix(BOOK-115): added focus indicator to shortcut links * fix(BOOK-115): updated ancillaries keyboard selection * fix(BOOK-115): removed tabIndex from Link component * fix(BOOK-115): fixed single payment radio button not focusable * fix(BOOK-115): updated to onKeyDown * added id to "credit card" * removed toUpperCase() on lables * removed brackets * moved the focus indicator to the DS Button component * removed !important from ButtonLink css * changed <label> to <fieldset> and <legend> and added aria-label to PaymentOptionGroup * removed css class from sidepeek that was previously removed * reverted changes and synced Guarantee radiogroup with Payment radiogroup to use same semantics * removed duplicate label * removed old sub heading Approved-by: Erik Tiekstra
103 lines
1.6 KiB
CSS
103 lines
1.6 KiB
CSS
@keyframes overlay-fade {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes modal-anim {
|
|
from {
|
|
transform: translateY(100%);
|
|
}
|
|
|
|
to {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.guarantee {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x1);
|
|
}
|
|
|
|
.checkboxContainer {
|
|
align-items: center;
|
|
display: flex;
|
|
flex: 1;
|
|
gap: var(--Space-x1);
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.infoButton {
|
|
display: flex;
|
|
gap: var(--Space-x05);
|
|
justify-self: flex-end;
|
|
outline: none;
|
|
}
|
|
.infoButton:focus-visible {
|
|
outline: 2px auto -webkit-focus-ring-color;
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.overlay {
|
|
align-items: center;
|
|
background-color: var(--Overlay-40);
|
|
display: flex;
|
|
inset: 0;
|
|
justify-content: center;
|
|
position: fixed;
|
|
z-index: var(--default-modal-overlay-z-index);
|
|
|
|
&[data-entering] {
|
|
animation: overlay-fade 200ms;
|
|
}
|
|
|
|
&[data-exiting] {
|
|
animation: overlay-fade 150ms reverse ease-in;
|
|
}
|
|
}
|
|
|
|
.modal {
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
border-radius: var(--Corner-radius-lg);
|
|
box-shadow: 0px 4px 24px 0px rgba(38, 32, 30, 0.08);
|
|
overflow: hidden;
|
|
padding: var(--Spacing-x5) var(--Spacing-x3);
|
|
width: min(90dvw, 560px);
|
|
|
|
&[data-entering] {
|
|
animation: modal-anim 200ms;
|
|
}
|
|
|
|
&[data-exiting] {
|
|
animation: modal-anim 150ms reverse ease-in;
|
|
}
|
|
}
|
|
|
|
.container {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Spacing-x2);
|
|
}
|
|
|
|
.text {
|
|
text-align: center;
|
|
}
|
|
|
|
.closeButton {
|
|
margin-top: var(--Space-x15);
|
|
outline: none;
|
|
width: min(164px, 100%);
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.btnText {
|
|
display: none;
|
|
}
|
|
}
|