Skip to content

Commit a79bcff

Browse files
authored
fix(hub-ui): preserve toast background on hover (#316)
1 parent a8e1f00 commit a79bcff

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/hub-ui/src/client/components/display/ToastOverlay.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function dispatchAction(action: DevframeMessageAction) {
5454
<div
5555
v-for="toast of toasts"
5656
:key="toast.id"
57-
class="bg-glass:80 border color-base border-base shadow-xl cursor-pointer hover:bg-active transition-colors rounded"
57+
class="bg-toast-glass border color-base border-base shadow-xl cursor-pointer transition-colors rounded"
5858
@click="openMessages(toast.id)"
5959
>
6060
<MessageItem :entry="toast.entry" compact class="px-3 py-2.5">

‎packages/hub-ui/uno.config.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export default mergeConfigs([
2626
shortcuts: {
2727
/** Use the lighter glass in light mode while retaining dark-mode contrast. */
2828
'bg-dock-glass': 'bg-glass dark:bg-[#111]/80',
29+
/** Match dock glass at rest, then strengthen each theme slightly on hover. */
30+
'bg-toast-glass': 'bg-dock-glass hover:bg-white/78 dark:hover:bg-[#111]/90',
2931
// Dock-shell z-layers (named — the design preset blocks plain
3032
// `z-<number>`). The floating shell layers sit at the very top of the
3133
// host page's stacking order, mirroring the upstream dock.

0 commit comments

Comments
 (0)