Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TB] Large border values impact molecules and components #992

Open
aaronreed708 opened this issue Aug 9, 2024 · 4 comments
Open

[TB] Large border values impact molecules and components #992

aaronreed708 opened this issue Aug 9, 2024 · 4 comments
Labels
bug Something isn't working theme builder app Theme Builder application

Comments

@aaronreed708
Copy link
Contributor

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

@aaronreed708 aaronreed708 added bug Something isn't working theme builder app Theme Builder application labels Aug 9, 2024
@toni-sharpe
Copy link

toni-sharpe commented Aug 11, 2024

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.

Chromatic and Storybook are cool

Intro

This tool - Chromatic is a live hosting tool and more for StoryBook.

I've used it for my site, I think it's quite new, maybe buggy, but I've found it very useful. On top of StoryBook, which is exceptional, it's really cool.

(note, these links may break, so the screen-shots will help)

My site is well storied.

It's pricey but you're open source so might get free access. Plus, I'm just using the free version and it's showing me errors.

Sharable and broken

Here's my initial, actual, sharable StoryBook focused on a purposefully broken visual (also useful). Note that it's commit based, so this should exist even as my site advances (needs proof, and check on how long these are kept).

image

Showing the errors

Here it is now saying it found visual changes. I undid my deliberate mistake that removed Histogram colours. That's caused 11 errors, Here's an example

There's an option "Diff" to toggle difference highlighting which I have turned off so my Histogram appears with hue alternated bars as it should.

image

With diff on, the green shows what is actually wrong:

image

@aaronreed708
Copy link
Contributor Author

@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.

Screenshot 2024-08-13 at 3 10 02 PM

@toni-sharpe
Copy link

toni-sharpe commented Aug 13, 2024

@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.

@aaronreed708
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working theme builder app Theme Builder application
Projects
Status: Low Priority
Development

No branches or pull requests

2 participants