Comments (3)
@BMCwebdev Thanks! Unfortunately there's no quick fix for your use-case... We build 'padding' directly into the path info of the SVGs to make them visually consistent in size. This means there isn't really any padding to subtract, and there isn't a constant offset you could apply to every icon to get them to fit the same square. If every icon just filled the square on it's largest axis, you'd have visual inconsistencies.
from homepage.
I would definitely direct you to read my partner's article on the subject and why we chose to do this, and [not to preach, but] why you might want to account for it in your design system.
As an example, a square-shaped icon that fits a 32 x 32 canvas would completely fill it, and look much larger than a triangular icon that fits a 32 x 32 canvas. How much do you size up the triangle to make them look visually the same size? That's what we figure out beforehand and bake into the icons.
from homepage.
Hi,
I need to align the play
icon to the left edge of its parent.
How do I do that ?
Thanks
from homepage.
Related Issues (20)
- Sorting icons (sort-descending and sort-ascending) mixed up HOT 4
- Companion fat x to the fat check icon
- Help request icon (question mark in callout)
- Some fediverse platform icons HOT 2
- please add Given icon
- Icon Grid System HOT 4
- Currency - Bangladeshi Taka (BDT) Icon
- Icon request: mini carets HOT 3
- Normal distribution curve
- Open and close sidebar
- please add Tripadvisor icon
- Diagonal line
- Music note black HOT 1
- Transmission Icon
- Wheel Drive Icon HOT 1
- Unknown file icon
- Barcode-reader icon 🤞
- Categories Icon HOT 1
- Line height icon
- Emissions, Climate Change, and Sustainability icons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homepage.