Skip to content

Instantly share code, notes, and snippets.

@getchoo
Last active August 3, 2025 08:51
Show Gist options
  • Save getchoo/d5800dad41babc0f448c26c6b19116d5 to your computer and use it in GitHub Desktop.
Save getchoo/d5800dad41babc0f448c26c6b19116d5 to your computer and use it in GitHub Desktop.
small userchrome tweak to enable edge-style vertical tab groups in firefox
/* Don't invert the color of tab groups when they're collapsed */
tab-group {
--tab-group-color: var(--tab-group-color-invert) !important;
}
.tab-group-label {
/* Don't change the text color or add an outline when tab groups are collapsed (makes the above usable) */
tab-group[collapsed] > .tab-group-label-container > & {
color: light-dark(var(--tab-group-color-pale), var(--tab-group-label-text-dark)) !important;
outline: none !important;
}
/* Hide labels when vertical tabs sidebar isn't expanded */
#tabbrowser-tabs[orient="vertical"]:not([expanded]) & {
&::first-letter {
font-size: 0px !important;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment