Skip to content

Commit

Permalink
[FormControl]: Make focus state customizable (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning authored Mar 21, 2024
1 parent f8d2b33 commit adbd7ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/formItem/formItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
'--leo-control-label-gap': {
description: 'The gap between the label and the control',
type: 'string'
},
'--leo-control-focus-effect': {
description: 'The focus effect for the control',
type: 'string'
}
}
</script>
Expand Down Expand Up @@ -109,8 +113,10 @@
--shadow: ;
--shadow-hover: var(--shadow);
--shadow-focus: 0px 0px 0px 2px #423eee,
0px 0px 0px 1px rgba(255, 255, 255, 0.3);
--shadow-focus: var(
--leo-control-focus-effect,
var(--leo-effect-focus-state)
);
--border-color: transparent;
--border-color-hover: transparent;
Expand Down

0 comments on commit adbd7ca

Please sign in to comment.