mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
♻️ Test button component accesibility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"] },
|
||||
|
||||
Reference in New Issue
Block a user