Skip to content

Commit

Permalink
feat!(FilledTag): 閉じるボタンはrole="button"でマークアップする (#423)
Browse files Browse the repository at this point in the history
#37 での議論を反映します
  • Loading branch information
knokmki612 authored Jul 5, 2023
1 parent 438a40e commit 6c80e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tailwindcss/filledTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = plugin.withOptions(
"&:is(button, a, [role='button']):hover": {
filter: "brightness(90%)",
},
button: close({ fill: theme("colors.white") }),
"[role='button']": close({ fill: theme("colors.white") }),
},
});
};
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss/stories/FilledTag.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import html from "./html";
<Story name="Closable">
{html` <div class="jumpu-filled-tag">
デフォルト
<button />
<div role="button" aria-label="閉じる" />
</div>`}
</Story>
</Canvas>

0 comments on commit 6c80e1a

Please sign in to comment.