Open platform to collect and prioritize feedback
Highlight the post's 3-dot handle while its menu is open
Matt Robertsba9b504b829e
diff --git a/public/components/PostDetails/PostDetails.scss b/public/components/PostDetails/PostDetails.scssindex 1e5d5c37f..60ef91aec 100644--- a/public/components/PostDetails/PostDetails.scss+++ b/public/components/PostDetails/PostDetails.scss@@ -28,6 +28,18 @@transition: box-shadow 0.2s ease-in-out;}+ &__post-card .c-dropdown__handle {+ padding: spacing(2);+ border-radius: 50%;+ }++ &__post-card .c-dropdown--open .c-dropdown__handle {+ background-color: var(--colors-gray-200);+ @include dark-mode {+ background-color: var(--colors-gray-400);+ }+ }+&__title {font-size: 20px;font-weight: get("font.weight.xbold");diff --git a/public/components/common/Dropdown.tsx b/public/components/common/Dropdown.tsxindex aeef72dcb..1656c4bdf 100644--- a/public/components/common/Dropdown.tsx+++ b/public/components/common/Dropdown.tsx@@ -108,7 +108,7 @@ export const Dropdown = (props: DropdownProps) => {return (<DropdownContext.Provider value={{ close }}>- <div ref={node} className="c-dropdown">+ <div ref={node} className={classSet({ "c-dropdown": true, "c-dropdown--open": isOpen })}><button type="button" className="c-dropdown__handle" onClick={toggleIsOpen} aria-label={props.ariaLabel}>{props.renderHandle}</button>