♻️ Test button component accesibility

This commit is contained in:
Xavier Julian
2025-11-12 10:32:53 +01:00
parent f2f8a488ad
commit bed948b500
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
:button-ghost (= variant "ghost")
:button-destructive (= variant "destructive"))
props (mf/spread-props props {:class [class internal-class]
:type (when-not to "button")
:href to
:ref (fn [node]
(when on-ref

View File

@@ -6,6 +6,7 @@
import * as React from "react";
import Components from "@target/components";
import { fn } from 'storybook/test';
const { Button } = Components;
const { icons } = Components.meta;
@@ -28,6 +29,7 @@ export default {
children: "Lorem ipsum",
disabled: false,
variant: undefined,
onClick: fn(),
},
parameters: {
controls: { exclude: ["children"] },