Skip to content

Commit 75a814f

Browse files
authored
fix(ui): remove flash when switching to dark (#909)
1 parent ba55eec commit 75a814f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/devtools-ui-kit/src/components/NDarkToggle.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function toggle(event?: MouseEvent) {
5555
{
5656
duration: 400,
5757
easing: 'ease-in',
58+
fill: 'forwards',
5859
pseudoElement: isDark.value
5960
? '::view-transition-old(root)'
6061
: '::view-transition-new(root)',

0 commit comments

Comments
 (0)