-
Notifications
You must be signed in to change notification settings - Fork 56
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
Missing overflow-visible on some icon button examples #2701
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Since our <svg>
s have their own security margin, I'm wondering if we still need the explanation.
If you think that we should keep them:
- 20 are missing in
dark-mode.md
line 1403 up to 1507 for the close buttons. - 30 are missing in
dark-mode.md
line 8356 up to 8821 for the close buttons. - 4 are missing in
close-button.md
line 43 up to 58 for the close buttons. - 2 are missing in
tooltips.md
line 141 up to 157 for the directions. - ;I think that the svgs inside the theme toggler should be changed and in general
.nav-link/.nav-icon
. If this is the case, many more are coming and I don't know the limit but maybe almost all svg should get.overflow-visible
. - 2 are missing in
download-app
line 367 up to 378 for the outline buttons. - 1 is missing in
icons.md
line 182 for the outline buttons. - 6 are missing in
checks-radios.md
line 315 up to 357 for the no outline buttons. - 1 is missing in
docs.html
line 39 for theOn this page
button. - 1 is missing in
single.html
line 19 for theDownload
button. - 1 is missing in
docs-subnav.html
line 6 for theToggle
button. - 1 is missing in
masthead.html
line 23 for theRead the docs
button. - 2 are missing in
;card.html
line 41 up to 49 for theSahre
andFavorite
buttons. - 2 are missing in
example.html
line 35 and 38 for theCopy
andStackBlitz
buttons. - 1 is missing in
js-docs.html
line 43 for theCopy
button. - 1 is missing in
scss-docs.html
line 56 for theCopy
button.
On the other side if you think that there are not needed anymore:
- 40 to remove in
dark-mode.md
. - 6 to remove in
buttons.md
. - 3 to remove in
orange-navbar.md
. - 3 to remove in
orange-global-headers.html
. - 2 to remove in
form.html
example. - 2 to remove in
orange-supra.html
.
@julien-deramond |
Let’s approach this with a logical deduction based on our current knowledge. None of us have identified a specific reason why the If we consider how other implementations handle this:
The only valid use case I can think of is if an icon or SVG has a very specific rendering requirement, for instance: <button type="button" class="btn btn-primary">
<svg width="1rem" height="1rem" fill="currentColor" aria-hidden="true" class="me-1">
<text x="0" y="1.2rem" font-size="1rem">Text</text>
</svg>
Primary
</button> However, our components are intended to be used with Solaris icons or, in the future, Orange’s pre-packaged icon libraries, where all icons are designed to fit uniformly within a square container of consistent size. Given this, I’d estimate that in 99% of cases, This leads to two conclusions:
What do you think folks? |
I'm in 😄 |
@hannahiss We should probably add a note in the migration guide as the markup of some components are modified (even if it doesn't have any impacts for the users). |
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 fine removing this class since it doesn't bring much.
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.
LGTM! Just added a migration note via e063766, please tell me if that's OK for you so that I can merge this PR.
Note: Please transform
- [ ]
into- (NA)
in the description when things are not applicableRelated issues
Description
Add missing class
.overflow-visible
utility, like the other examples arround.Motivation & Context
This class is needed to prevent SVG content from being cropped
Types of change
Live previews