Skip to content

Commit

Permalink
Merge pull request #31 from IATI/validator
Browse files Browse the repository at this point in the history
Add ability to apply `iati-button` styles to `<a>` elements
  • Loading branch information
tillywoodfield authored Dec 11, 2024
2 parents 1dcc152 + 9f1e8b8 commit 9f6c309
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scss/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
padding: 0.7em;
font-weight: 600;
transition: all 0.2s ease-in-out;
text-decoration: none;

&:hover {
background-color: $color-teal-80;
Expand Down
4 changes: 4 additions & 0 deletions src/scss/components/button/button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export const Default: Story = {
render: () => html`<button class="iati-button">Button</button>`,
};

export const Link: Story = {
render: () => html`<a href="#" class="iati-button">Button</a>`,
};

export const Light: Story = {
parameters: {
backgrounds: {
Expand Down

0 comments on commit 9f6c309

Please sign in to comment.