You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3141fad
Browse filesBrowse the repository at this point in the historyBrowse files
feat(hub,hub-ui): color a dock-bar entry's badge via badgeVariant
Port of vitejs/devtools#528 by @dvcolomban, adapted for this repo's own
split into `@devframes/hub` (types) and `@devframes/hub-ui` (dock
components) — the field lands directly on `DevframeDockEntryBase`
rather than via a cross-package `declare module` augmentation, since
the augmenting and augmented packages both live here now.
`badgeVariant?: 'default' | 'info' | 'success' | 'warning' | 'danger'`
mirrors json-render's `TabDescriptor.badgeVariant` / `Badge.ts` variant
naming. `DockEntry.vue` applies it as an inline fill, falling back to
the existing neutral classes at `'default'`/unset so every current
badge consumer keeps its look. Threaded through `DockEntries.vue` and
`DockGroupButton.vue`, with new stories in `DockEntry.stories.ts`.
Closes#214.
Co-authored-by: Dinh-Van Colomban <dinh-van.colomban@contentsquare.com>
0 commit comments