Skip to content

Commit

Permalink
fix: style links in sys-form-error better
Browse files Browse the repository at this point in the history
  • Loading branch information
btkostner committed Jul 31, 2020
1 parent 992a1fa commit a0ee2b9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/components/sys-form-error.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,17 @@ This is how the input component looks without any given props or data.
}}
</Story>
</Preview>

### With a link

Sometimes we add a link to fix the error. This is what that would look like.

<Preview>
<Story height="100px" name="Link">
{{
template: `<sys-form-error>
an error occured. <a href="#">fix it</a>.
</sys-form-error>`
}}
</Story>
</Preview>
8 changes: 7 additions & 1 deletion src/components/sys-form-error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
border: 1px solid var(--color-light-form-input-border);
color: var(--color-light-form-input-background);
display: block;
padding: 0.5rem;
padding: 0.5rem 1rem;
margin: 1rem 0;
}
.error a {
color: inherit;
text-decoration: underline;
}
</style>

0 comments on commit a0ee2b9

Please sign in to comment.