Google Page Insights Tweaks

This commit is contained in:
fraxle
2026-05-16 09:21:06 +01:00
parent 8d2bb6e608
commit de1f2f5a37
7 changed files with 114 additions and 91 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ const html = htm.bind(h);
// groupedLeft — bool — fuse right side with a VentPill
// isLastChild — bool — restore right border-radius when no sibling follows
// ═══════════════════════════════════════════════════════════════════
export function CustomSelect({ value, options, onChange, hideLabel, hidingLabel, isOn, groupedLeft, isLastChild }) {
export function CustomSelect({ value, options, onChange, hideLabel, hidingLabel, isOn, noHide, groupedLeft, isLastChild }) {
const [open, setOpen] = useState(false);
const wrapRef = useRef(null);
@@ -78,11 +78,11 @@ export function CustomSelect({ value, options, onChange, hideLabel, hidingLabel,
type="button"
>
${btnLabel}
<span class="cs-arrow"></span>
<span class="cs-arrow"></span>
</button>
${open && html`
<div class="cs-panel" role="listbox">
${isOn && html`
${isOn && !noHide && html`
<span
class="cs-option"
role="option"