From c6da4f5b148e2134129fede4224af229829db3f1 Mon Sep 17 00:00:00 2001 From: Danny Andrews Date: Thu, 11 Apr 2024 13:32:54 -0400 Subject: [PATCH] Update docs for customizing button widths (#1973) Currently, the docs state that you can set a width attribute to customize the width of buttons, but no such attribute exists. I've updated the docs to direct people to set a custom width via CSS through inline styles or a custom class. --- docs/pages/components/button.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/components/button.md b/docs/pages/components/button.md index 084d84ea..4b8a5a9d 100644 --- a/docs/pages/components/button.md +++ b/docs/pages/components/button.md @@ -236,7 +236,7 @@ When a `target` is set, the link will receive `rel="noreferrer noopener"` for [s ### Setting a Custom Width -As expected, buttons can be given a custom width by setting the `width` attribute. This is useful for making buttons span the full width of their container on smaller screens. +As expected, buttons can be given a custom width by passing inline styles to the component (or using a class). This is useful for making buttons span the full width of their container on smaller screens. ```html:preview Small