hive ui: remove the counters on the tabs
The pills on 4G3NTS, R3BU1LD QU3U3 and K3PT ST4T3, the poll that fed them, the two count helpers, their styles, and the tab strip's unused badge option.
This commit is contained in:
parent
46001be283
commit
a781addcfe
1 changed files with 7 additions and 93 deletions
|
|
@ -7,7 +7,7 @@
|
|||
// duplication, this is markup only.
|
||||
//
|
||||
// Light-DOM (no shadow root): the existing .hive-tabbar/.hive-tab/
|
||||
// .tab-count CSS (tabs.css + dashboard.css) already targets plain classes
|
||||
// CSS (tabs.css) already targets plain classes
|
||||
// on the tabbar/tab elements directly, and tab *panes* stay page-owned
|
||||
// content this element never touches — no slotting/scoping need the way
|
||||
// <hive-menu>/<hive-side-panel> have.
|
||||
|
|
@ -20,9 +20,7 @@
|
|||
// aria-controls="${prefix}-pane-${id}" data-tab="${id}">${label}</a>
|
||||
// — same id/aria-controls scheme the hand-written markup used, so each
|
||||
// page's panes (aria-labelledby="${prefix}-tab-${id}") don't need to
|
||||
// change. A `badgeId` tab also gets a nested `<span class="tab-count"
|
||||
// id="${badgeId}" hidden>` (e.g. a rebuild-queue count
|
||||
// pill), then wires up createTabStrip() and returns exactly what it
|
||||
// change. It then wires up createTabStrip() and returns exactly what it
|
||||
// returns ({ show, active }) — every existing `.active()`/`.show(id)`
|
||||
// call site keeps working unchanged. Call configure() exactly once per
|
||||
// element (throws if called twice), mirroring the old call sites.
|
||||
|
|
@ -54,11 +52,6 @@ class HiveTabStrip extends HTMLElement {
|
|||
},
|
||||
tab.label,
|
||||
);
|
||||
if (tab.badgeId) {
|
||||
a.append(
|
||||
el("span", { class: "tab-count", id: tab.badgeId, hidden: "" }),
|
||||
);
|
||||
}
|
||||
this.append(a);
|
||||
}
|
||||
this._api = createTabStrip(this, { defaultId, onShow });
|
||||
|
|
|
|||
Loading…
Reference in a new issue