-
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
Fix design issues on social buttons #2073
base: main
Are you sure you want to change the base?
Conversation
- add Tiktok icon - change svg since their quality wasn't good enough, optimize them with svgo - change hover color for Snapchat to black - adjust sizes, change LinkedIn size to 18x18 instead of 20x20 to conform to design
# Conflicts: # site/content/docs/5.2/migration.md
# Conflicts: # site/content/docs/5.3/migration.md
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
# Conflicts: # scss/_variables.scss
During the web weekly synch on 29th August, we agreed on putting this PR "on hold" and start a technical study about using external svgs instead of embedded ones in our css file. We have to check how to manage other styles like transform, size and hiver color (class, css variable?) |
Quick prototype can be done with the following idea: <a href="#" class="btn btn-icon btn-social" style="--bs-network-color: #3b5998;
--bs-network-logo: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M19 6h5V0h-5c-4 0-7 3-7 7v3H8v6h4v16h6V16h5l1-6h-6V7l1-1z'%3e%3c/path%3e%3c/svg%3e");">
<span class="visually-hidden">Facebook</span>
</a> diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index 7e08d0d2d..d0590f11b 100644
--- a/scss/_buttons.scss
+++ b/scss/_buttons.scss
@@ -248,6 +248,10 @@
--#{$prefix}btn-active-border-color: #{$white};
--#{$prefix}btn-disabled-color: #{$gray-700};
}
+
+ &::before {
+ mask-size: 32; /* It can be a CSS var as well if needed */
+ }
}
@each $name in map-keys($btn-social-networks) { Then the doc could present the different icons and CSS variables to use as inline CSS, or explain that projects can still create their |
Note: Please transform
- [ ]
into- (NA)
in the description when things are not applicableRelated issues
Issues seen when reviewing issue #1766 and PR #1778
Description
What has been seen by Franco:
Franco proposed new icons, they have been optimized with svgo and cleaned up of unnecessary attributes, and result is obviously visually better but bundle size is really bigger. Note that some aliasing is still visible in zoom 100% but seems due to browser display (ok in 200%).
Icons look and size comparison, and proposition:
Comparison before (above) and after (below):
No changes on icons Twitter (for now) and TikTok (already new).
Technical changes in
.btn-social
class:$btn-social-networks
in_variables.scss
Motivation & Context
Changes asked by Franco after a review on social icons.
Types of change
Live previews
Checklist
Contribution
Accessibility
Design
Development
Documentation
Checklist (for Core Team only)
After the merge