Skip to content

Conversation

@mholt
Copy link
Contributor

@mholt mholt commented Aug 24, 2023

This PR attempts to repair some of the broken variable names from the Bootstrap 5 transition somewhere between betas 16 and 19 (and now beta 20 as of this morning) and to improve the accessibility with a more visually consistent color-step palette.

(Apologies for my non-hi-DPI screen with which I took these screenshots...)

Border color on hover was black because of missing variable:

image

I restored the previous look by repairing the variable, which makes it a dark gray (which IMO looks better too -- this is the way it was in beta ~16):

image

Card caps bg is currently too hard to see:

image

Now it is visible again, closer to beta 16:

image

(Thus this PR fixes #1592)

It resolves a few accessibility issues as well:

  • Hover BGs are now visible, they got lost somewhere between beta 16 and 19. Now they're even more visible, but not too much.
    Before:
    image
    Current:
    image
    After:
    image

  • Restored the pre-beta-19 blue color, so that Tabler brand color is its own distinct color. This also improves contrast of buttons and links which are now more legible in dark mode.
    Current:
    image
    After:
    image

There's still some work to do which I may push to this PR if it's still open, but I think this PR is a good step forward and ready to go anyway.

(These visibility/accessibility improvements are required for my app, hence my PR. I'd love to not have to maintain a fork of Tabler, if it's possible I'd like to get this -- or something like this -- merged. 😊)

@changeset-bot
Copy link

changeset-bot bot commented Aug 24, 2023

⚠️ No Changeset found

Latest commit: 1dc2af8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Aug 24, 2023

@mholt is attempting to deploy a commit to the Tabler Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tabler ✅ Ready (Inspect) Visit Preview Aug 24, 2023 2:51pm

@mholt
Copy link
Contributor Author

mholt commented Aug 24, 2023

I'm still trying to figure out how to bring back the beta 16 navbar link hover colors. In dark mode, the links were gray but become white on hover. I can't seem to figure out how to make that happen in beta 20? Something -- I suspect Bootstrap -- is setting the alpha channel to 80% it seems.

@rjd22
Copy link
Collaborator

rjd22 commented Sep 14, 2023

Thank you @mholt for the changes.

@codecalm What do you think of this? Imo looks good for me but maybe you have other ideas?

@kevinpapst
Copy link
Collaborator

Thanks @mholt for your work! Waiting for these fixes and a new release...

@BG-Software-BG BG-Software-BG linked an issue Sep 19, 2023 that may be closed by this pull request
@codecalm codecalm merged commit 9fb4019 into tabler:dev Sep 21, 2023
@mholt
Copy link
Contributor Author

mholt commented Sep 21, 2023

Thank you for merging 😊

@mokazemi
Copy link

mokazemi commented Nov 8, 2023

Hi. Just wanted to ask when there would be a new release so this hover issue is fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] --tblr-dropdown-link-hover-bg not defined [BUG] Card header is too bright (lacks contrast)

5 participants