diff --git a/src/components/status.css b/src/components/status.css index bd4b555f..745121c9 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -141,13 +141,18 @@ margin-left: 4px; white-space: nowrap; } -.status > .container > .meta a.time:is(:hover, :focus) { - text-decoration: underline; -} .status > .container > .meta a.time { position: relative; overflow: visible; } +.status > .container > .meta a.time:is(:hover, :focus) { + text-decoration: underline; +} +.status > .container > .meta a.time:active, +.status > .container > .meta a.time.is-open { + text-decoration: none; + opacity: 1; +} .status > .container > .meta a.time:after { content: ''; position: absolute; diff --git a/src/components/status.jsx b/src/components/status.jsx index e0216f82..9b1c7563 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -579,14 +579,14 @@ function Status({ viewScroll="close" boundingBoxPadding="8 8 8 8" unmountOnClose - menuButton={ + menuButton={({ open }) => ( { e.preventDefault(); e.stopPropagation(); }} - class="time" + class={`time ${open ? 'is-open' : ''}`} > {' '} - } + )} > {StatusMenuItems}