Skip to content

Commit f115022

Browse files
committed
Update confirmation button styles and add Enter hint
1 parent 63dae10 commit f115022

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

src/lib/components/ConfirmationModal.svelte

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
</div>
6767

6868
<div class="dialog-footer">
69+
<span class="hint"><kbd>↵</kbd> to confirm</span>
6970
<button class="ghost" onclick={handleCancel}>
7071
{state.options.cancelText}
7172
</button>
@@ -99,11 +100,28 @@
99100
100101
.dialog-footer {
101102
display: flex;
102-
justify-content: flex-end;
103+
align-items: center;
103104
gap: var(--space-sm);
104105
padding: var(--space-sm) var(--space-md) var(--space-md);
105106
}
106107
108+
.dialog-footer .hint {
109+
font-size: 10px;
110+
color: var(--text-disabled);
111+
margin-right: auto;
112+
}
113+
114+
.dialog-footer kbd {
115+
display: inline-block;
116+
padding: 1px 4px;
117+
font-family: inherit;
118+
font-size: 9px;
119+
background: var(--surface-raised);
120+
border: 1px solid var(--border);
121+
border-radius: var(--radius-sm);
122+
color: var(--text-muted);
123+
}
124+
107125
.dialog-footer button {
108126
padding: var(--space-sm) var(--space-md);
109127
border: 1px solid var(--border);
@@ -126,12 +144,13 @@
126144
}
127145
128146
.dialog-footer button:not(.ghost) {
129-
background: var(--accent);
130-
color: var(--surface);
147+
background: var(--surface-raised);
148+
color: var(--text);
131149
border-color: var(--accent);
132150
}
133151
134152
.dialog-footer button:not(.ghost):hover {
135-
filter: brightness(1.1);
153+
background: var(--surface-hover);
154+
border-color: var(--accent);
136155
}
137156
</style>

0 commit comments

Comments
 (0)