You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe alternatives you've considered
Keeping the current API & continuing to add custom CSS for fine tuned border radius styles. Doesn't seem very maintainable though!
Generally speaking, 2px, 3px, 4px & 6px take care of most rounded corners cases, I however don't know what the internal policy is about adding upwards of twenty new selectors.
I also can't see the search results since I'm not GH Staff so I'm kind of taking a shot in the dark with this one based on practicality instead of knowing what the search results yield.
I think this is a great idea, since there are currently a lot of custom rules in github.com that we could kill off with at least edge-specific (rather than corner-specific) roundedness utilities. Something like the following might do it:
So you could either use class="rounded-1 rounded-bottom-0" or class="rounded-top-1". Or maybe we don't want to encourage the former and only provide the -1 and -2 edge variants? 🤔
Is your feature request related to a problem? Please describe.
I've noticed in a lot of places that custom CSS is being used to apply border radius rules to specific sides of an element.
https://github.com/search?utf8=%E2%9C%93&q=border-top+repo%3AGitHub%2FGitHub+path%3Aapp%2Fassets%2Fstylesheets%2Fcustom%2F&type=Code&ref=advsearch&l=&l=
Describe the solution you'd like
More granular border radius utilities. Could folllow an API like so:
Describe alternatives you've considered
Keeping the current API & continuing to add custom CSS for fine tuned border radius styles. Doesn't seem very maintainable though!
Additional context
I thought about this while reviewing this PR: https://github.com/github/github/pull/93040/files#diff-2fefdd5acad75a94deb15ce429d50e39L62 and realizing people are needing to create custom selectors just to apply/override border radius for specific corners
The text was updated successfully, but these errors were encountered: