mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-27 17:02:55 +08:00
Introduces DComboButton as a generic component that groups a primary action button with a dropdown menu trigger. <img width="160" alt="image" src="https://github.com/user-attachments/assets/28ffcc51-33ed-4d02-975d-3131801322ba" /> * Wraps DButton + DMenu in a role="group" container with proper accessibility * Refactors TopicDraftsDropdown to build on top of DComboButton * Replaces the CSS override in uc-modernize-foundation-theme with @btnTypeClass="btn-primary" * Restyles button for foundation and horizon themes --------- Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
14 lines
243 B
SCSS
Vendored
14 lines
243 B
SCSS
Vendored
.topic-drafts-menu-content .dropdown-menu {
|
|
.btn .d-button-label {
|
|
@include ellipsis;
|
|
}
|
|
|
|
.view-all-drafts {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
span:first-child {
|
|
color: var(--primary-high);
|
|
}
|
|
}
|
|
}
|