Open aaronreed708 opened 3 months ago
General note: with this sort of problem screen-shots greatly enhance the ability of other devs to understand the issue. I know a bit about target areas and borders, but need screen-shots at least, even better, a link to a sand-box, dev env. or story-book.
Do you use story-book? If so is there a live version? In the closed section below is an elaboration of how this tool with another called Chromatic could be very useful.
It's also worth noting the a11y tab I have on StoryBook.
@toni-sharpe good point! We do not currently have storybook running, but we have done work toward that goal. I don't think it has wrapped up, yet.
Here is the issue when I've set the border size to 12px in the design system.
@aaronreed708 and the code for this? I know the basic CSS solution here, but the context would be required to make sure the solution is good.
Not sure how far down you want to look. The standard buttons panel on the right side in the snapshot above is: https://github.com/finos/a11y-theme-builder/blob/dev/code/src/ui/src/pages/molecules/ButtonsStandardMolecule.tsx
Problem/Concern
I discovered today that if you set the border width in the border atom to 8 or above, the secondary buttons on the Buttons Standard molecule start to become un-useable. With a 16px border, the text on a secondary button is unreadable. Do we need to provide some kind of limit to the value? Should we put in warning text? Do we not allow secondary buttons to be affected by borders? Looking for the right answer.
Proposed Solution