Skip to content

Commit

Permalink
feat: avoid ligatures in URL input
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Oct 16, 2021
1 parent 54e3e1e commit 4120e05
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/textbox/bem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
font-variant-numeric: slashed-zero;
}

.utrecht-textbox--url {
font-variant-ligatures: none;
}

.utrecht-textbox--html-input {
&:disabled {
@extend .utrecht-textbox--disabled;
Expand Down
4 changes: 4 additions & 0 deletions components/textbox/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
@extend .utrecht-textbox--password;
}

input[type="url" i] {
@extend .utrecht-textbox--url;
}

input[autocomplete~="bday" i],
input[autocomplete~="bday-day" i],
input[autocomplete~="bday-month" i],
Expand Down
14 changes: 14 additions & 0 deletions components/textbox/html.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,20 @@ Styling via the `<input>` element:
</Story>
</Canvas>

## URL input

<Canvas>
<Story
name="URL input"
args={{
type: "url",
value: "https://example.fi/",
}}
>
{Template.bind({})}
</Story>
</Canvas>

## Placeholder

<Canvas>
Expand Down

0 comments on commit 4120e05

Please sign in to comment.