-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Proposal] Remove carets from all components with built in carets #1191
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
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-css/pbb3yltk6 |
|
Removing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on board with removing the carets. 👍
Removing the
src/support/mixins/misc.scssfile removes Primer base support for carets in dotcom.
In regards to timing.. by removing the double-caret() mixing, this PR qualifies as a "breaking change" and would need to be part of the next major release.
Or we could also make it part of #1131. And remove all the uses of double-caret() on dotcom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
](👎🏻
|
@vdepizzol made a good point that the caret/pointer can be useful in some cases.. see Slack
Ok, let's not rush this into |
|
@colinkeany @simurai we could update our CSS to use I've built a quick prototype showing how it could work: The output generates a much cleaner border, too. Here's a test from the proof of concept: Setting new positions to the caret would be a simple as defining bottom: calc((var(--tooltip-arrow-size) / -2));
left: calc(50% - (var(--tooltip-arrow-size) / 2));
clip-path: polygon(0% 0%, 100% 100%, 0% 100%); |
yeah when the triangle method was added, there really wasn't a bunch of options. clip-path could be interesting if we keep it. But I'm also of the mind that the triangles make the site look really dated. I can't find an example of another site that still has that speech bubble design. |
|
@jonrohan oh yes, I'm all up for removing these unnecessary triangles from many places, that's also what I'm pushing with the latest overlay work :). I think there are still a couple of occasions where having these triangles make sense, though. @simurai included a link above where I described some of those. 🙇 |
|
One place that I can think of a the caret being helpful is for these promo popovers that don't appear on a user action, but get shown on page load. Then it's nice to see where I have to click to test the new feature. But that could be an opt-in and the default of Popover would still be without a caret. |
|
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days. |



This is the first step of my proposal to remove carets from all of our components. Carets are being removed from dropdowns, popovers and tooltips. This change results in the deletion of 409 lines of CSS.
Some of the core reasons for this change:
/cc @primer/ds-core