feat: re-add outline to add room button

This commit is contained in:
Simon Emanuelsson
2025-05-06 10:47:58 +02:00
committed by Simon.Emanuelsson
parent 8bff7f2cf2
commit 73c2af2766
2 changed files with 19 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ export default function GuestsRoomsPickerDialog({
canAddRooms && ( canAddRooms && (
<div className={styles.addRoomMobileContainer}> <div className={styles.addRoomMobileContainer}>
<Button <Button
className={styles.addRoomBtn}
intent="text" intent="text"
variant="icon" variant="icon"
wrapping wrapping
@@ -169,6 +170,7 @@ export default function GuestsRoomsPickerDialog({
canAddRooms && ( canAddRooms && (
<div className={styles.hideOnMobile}> <div className={styles.hideOnMobile}>
<Button <Button
className={styles.addRoomBtn}
intent="text" intent="text"
variant="icon" variant="icon"
wrapping wrapping

View File

@@ -15,6 +15,7 @@
transition: top 300ms ease; transition: top 300ms ease;
z-index: 100; z-index: 100;
} }
.contentWrapper { .contentWrapper {
display: grid; display: grid;
grid-template-areas: grid-template-areas:
@@ -31,14 +32,17 @@
display: grid; display: grid;
gap: var(--Spacing-x2); gap: var(--Spacing-x2);
} }
.roomDetailsContainer { .roomDetailsContainer {
display: grid; display: grid;
gap: var(--Spacing-x2); gap: var(--Spacing-x2);
padding-bottom: var(--Spacing-x1); padding-bottom: var(--Spacing-x1);
} }
.roomHeading { .roomHeading {
margin-bottom: var(--Spacing-x1); margin-bottom: var(--Spacing-x1);
} }
.btn { .btn {
background: none; background: none;
border: none; border: none;
@@ -64,6 +68,7 @@
.roomContainer { .roomContainer {
padding: var(--Spacing-x2); padding: var(--Spacing-x2);
} }
.roomContainer:last-of-type { .roomContainer:last-of-type {
padding-bottom: calc(var(--sticky-button-height) + 20px); padding-bottom: calc(var(--sticky-button-height) + 20px);
} }
@@ -77,6 +82,15 @@
width: 100%; width: 100%;
} }
.contentWrapper
.addRoomMobileContainer
.addRoomBtn:is(:focus, :focus-visible, :focus-within),
.footer .hideOnMobile .addRoomBtn:is(:focus, :focus-visible, :focus-within),
.roomActionsButton:is(:focus, :focus-visible, :focus-within) {
outline: -webkit-focus-ring-color auto 1px;
text-decoration: none;
}
@media screen and (max-width: 1366px) { @media screen and (max-width: 1366px) {
.contentContainer { .contentContainer {
grid-area: content; grid-area: content;
@@ -140,9 +154,11 @@
.container { .container {
height: 24px; height: 24px;
} }
.pickerContainerMobile { .pickerContainerMobile {
display: none; display: none;
} }
.contentWrapper { .contentWrapper {
grid-template-rows: auto; grid-template-rows: auto;
} }
@@ -150,6 +166,7 @@
.roomContainer { .roomContainer {
padding: var(--Spacing-x2) 0 0 0; padding: var(--Spacing-x2) 0 0 0;
} }
.roomContainer:first-of-type { .roomContainer:first-of-type {
padding-top: 0; padding-top: 0;
} }