Merge pull request #21728 from overleaf/as-checkout-currency-switcher

Add Bootstrap 5 Redesign variant of currency selector

GitOrigin-RevId: f0f4176f7d51835a7e15324be7cfcaab0af5bf36
This commit is contained in:
M Fahru 2024-11-14 09:20:31 -07:00 committed by Copybot
parent 1c10059c0a
commit e588b0748a
2 changed files with 37 additions and 0 deletions

View file

@ -23,6 +23,7 @@ function OLDropdownMenuItem(props: OLDropdownMenuItemProps) {
onClick: rest.onClick,
href: rest.href,
download: rest.download,
eventKey: rest.eventKey,
...bs3Props,
}

View file

@ -251,3 +251,39 @@
--bs-btn-bg: transparent;
}
}
.change-currency {
.dropdown-item:not(:first-child) {
margin-top: var(--spacing-02);
}
}
.change-currency-toggle {
padding-left: 0;
text-decoration: underline;
color: var(--content-secondary);
&:hover,
&:focus,
&:active {
// !important is unfortunately necessary to override btn:first-child:active
color: var(--content-secondary) !important;
}
&:not(:hover) {
text-decoration: underline;
}
// Hide the dropdown caret, BS5 react-bootstrap does not have a prop for this
&::after {
display: none;
}
@include body-xs;
}
.change-currency-dropdown-selected-icon {
position: absolute;
right: 10px;
top: var(--bs-dropdown-item-padding-y);
}