Re: [csswg-drafts] [css-forms] Allow making <button> a real inline (or block/flex/etc) (#3226)

> Is there currently no way to have a <button> that’s “styled like a link” and whose contents can break across multiple lines like an inline <a> can?

As far as I know, no. My inline link component that can also be a button if an `onClick` is passed to it but no `href` renders a `<span>` and I use `react-aria`'s [useButton](https://react-spectrum.adobe.com/react-aria/useButton.html#usebutton) to make it accessible. 💀 Everything about the layout of `<button>` has to be in my top 3 CSS gripes left in 2025.

-- 
GitHub Notification of comment by benface
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3226#issuecomment-2655034077 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 February 2025 23:04:07 UTC