Skip to content

Commit

Permalink
fix: placeholder -> disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
matijs committed Dec 20, 2024
1 parent fe245ac commit b2caae9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions packages/storybook-test/stories/link/link.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ De HTML heeft het \`aria-current="true"\` attribuut.`,
},
};

export const Placeholder: Story = {
name: 'Placeholder Link',
export const DisabledLink: Story = {
name: 'Disabled Link',
args: {
children: '2 december',
disabled: true,
href: 'https://www.htmhell.dev/adventcalendar/2024/2/',
placeholder: true,
},
globals: {
dir: 'ltr',
Expand Down Expand Up @@ -446,7 +446,7 @@ Een Placeholder-link is niet focusbaar. In de accessibility tree staan ze wel, a
.map((_, i) => i + 3)
.map((day) => (
<li key={day}>
<Link href={`https://www.htmhell.dev/adventcalendar/2024/${day}/`} placeholder>
<Link href={`https://www.htmhell.dev/adventcalendar/2024/${day}/`} disabled>
{day} december
</Link>
</li>
Expand Down
32 changes: 16 additions & 16 deletions packages/tokens/link-tokens/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,50 +33,50 @@
"$type": "fontWeights"
}
},
"hover": {
"disabled": {
"color": {
"$extensions": {
"nl.nldesignsystem.css-property-syntax": "<color>",
"nl.nldesignsystem.figma-implementation": true
},
"$type": "color"
},
"text-decoration-line": {
"cursor": {
"$extensions": {
"nl.nldesignsystem.css-property-syntax": ["inherit", "none", "underline"],
"nl.nldesignsystem.figma-implementation": true
"nl.nldesignsystem.css-property-syntax": ["<url>", "pointer", "*"],
"nl.nldesignsystem.figma-implementation": false
},
"$type": "textDecoration"
"$type": "other"
},
"text-decoration-thickness": {
"font-weight": {
"$extensions": {
"nl.nldesignsystem.css-property-syntax": "<length>",
"nl.nldesignsystem.css-property-syntax": "<number>",
"nl.nldesignsystem.figma-implementation": false
},
"$type": "other"
"$type": "fontWeights"
}
},
"placeholder": {
"hover": {
"color": {
"$extensions": {
"nl.nldesignsystem.css-property-syntax": "<color>",
"nl.nldesignsystem.figma-implementation": true
},
"$type": "color"
},
"cursor": {
"text-decoration-line": {
"$extensions": {
"nl.nldesignsystem.css-property-syntax": ["<url>", "pointer", "*"],
"nl.nldesignsystem.figma-implementation": false
"nl.nldesignsystem.css-property-syntax": ["inherit", "none", "underline"],
"nl.nldesignsystem.figma-implementation": true
},
"$type": "other"
"$type": "textDecoration"
},
"font-weight": {
"text-decoration-thickness": {
"$extensions": {
"nl.nldesignsystem.css-property-syntax": "<number>",
"nl.nldesignsystem.css-property-syntax": "<length>",
"nl.nldesignsystem.figma-implementation": false
},
"$type": "fontWeights"
"$type": "other"
}
},
"text-decoration-line": {
Expand Down

0 comments on commit b2caae9

Please sign in to comment.