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

Revert TimelineItem-badge fix #1563

Merged
merged 2 commits into from
Sep 2, 2021
Merged

Revert TimelineItem-badge fix #1563

merged 2 commits into from
Sep 2, 2021

Conversation

simurai
Copy link
Contributor

@simurai simurai commented Sep 2, 2021

This reverts:

The "gradient hack" causes too many regressions and doesn't allow utilities like color-bg-danger-inverse to be used. To fix the "transparency" problem, I'll add a custom "component" variable for the TimelineItem-badge background to Primitives.

I tried using a ::after pseudo element, but that still renders "above" the background color of the element and doesn't help in this situation.

In the future we might can offer different "states" for the TimelineItem-badge, but that needs some refactoring on dotcom first.

@simurai simurai requested a review from a team as a code owner September 2, 2021 02:49
@changeset-bot
Copy link

changeset-bot bot commented Sep 2, 2021

🦋 Changeset detected

Latest commit: 85a7496

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Patch

Not sure what this means? Click here to learn what changesets are.

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

@simurai simurai merged commit 679d70b into main Sep 2, 2021
@simurai simurai deleted the revert-timelineItem-badge-fix branch September 2, 2021 02:54
@primer-css primer-css mentioned this pull request Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants