Rounded Material Icons border and color problemChange an HTML5 input's placeholder color with CSSHow to remove border (outline) around text/input boxes? (Chrome)Responsive font icon is it possible?Change font color base on child classngMessages validation in AngularJS doesn't clean the error message in CSSangular material and md-icon directivesRound background color on Flexbox cellsGoogles new buttons - how to do rounded ends in CSSCSS - Add icon on left of border with relative positionFont awesome gradient animation on hover
I found an audio circuit and I built it just fine, but I find it a bit too quiet. How do I amplify the output so that it is a bit louder?
When were female captains banned from Starfleet?
It grows, but water kills it
"It doesn't matter" or "it won't matter"?
Did the UK lift the requirement for registering SIM cards?
Can I cause damage to electrical appliances by unplugging them when they are turned on?
The IT department bottlenecks progress, how should I handle this?
Why do some congregations only make noise at certain occasions of Haman?
Creating two special characters
Why is so much work done on numerical verification of the Riemann Hypothesis?
awk assign to multiple variables at once
What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?
Does the reader need to like the PoV character?
Why does this expression simplify as such?
Multiplicative persistence
Stack Interview Code methods made from class Node and Smart Pointers
What is the English pronunciation of "pain au chocolat"?
Pre-mixing cryogenic fuels and using only one fuel tank
What is going on with gets(stdin) on the site coderbyte?
Quoting Keynes in a lecture
How do I fix the group tension caused by my character stealing and possibly killing without provocation?
Short story about a deaf man, who cuts people tongues
Why is the Sun approximated as a black body at ~ 5800 K?
Why does Carol not get rid of the Kree symbol on her suit when she changes its colours?
Rounded Material Icons border and color problem
Change an HTML5 input's placeholder color with CSSHow to remove border (outline) around text/input boxes? (Chrome)Responsive font icon is it possible?Change font color base on child classngMessages validation in AngularJS doesn't clean the error message in CSSangular material and md-icon directivesRound background color on Flexbox cellsGoogles new buttons - how to do rounded ends in CSSCSS - Add icon on left of border with relative positionFont awesome gradient animation on hover
I have included Material Icons Rounded to my webpage like this:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round" rel="stylesheet">
And I have css code for rounded class
.material-icons.material-icons--rounded
font-family: 'Material Icons Round';
In the page, star icon looks like this:
If i increase the font-size it turns into this:
Where does that border coming from and how to remove it ?
Edit: I have created a pen to reproduce the problem https://codepen.io/anon/pen/wOJdMZ
@import "https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round";
.material-icons--rounded
font-family: "Material Icons Round";
i
color: red;
.material-icons
font-size: 60px;
.size--2
font-size: 90px;
<table>
<tr>
<th>Rounded</th>
<td><i class="material-icons material-icons--rounded">star</i></td>
<td><i class="material-icons material-icons--rounded size--2">star</i></td>
<td><i class="material-icons material-icons--rounded">star_half</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_half</i></td>
<td><i class="material-icons material-icons--rounded">star_border</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_border</i></td>
</tr>
<tr>
<th>Not Rounded<br>
<td><i class="material-icons">star</i></td>
<td><i class="material-icons size--2">star</i></td>
<td><i class="material-icons">star_half</i></td>
<td><i class="material-icons size--2">star_half</i></td>
<td><i class="material-icons">star_border</i></td>
<td><i class="material-icons size--2">star_border</i></td>
</tr>
</table>
UPDATE:
Rounded icon colors are not changing on some screen sizes.
I have updated the code snippet which is attached to the question.
- On the 1920x1080 monitor, all icons are red.
- On the 2560 x 1600 macbook retina screen, rounded icons are black and the others are red. (This doesn't seem to be a problem on Chrome or Firefox)
css material-design google-material-icons
add a comment |
I have included Material Icons Rounded to my webpage like this:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round" rel="stylesheet">
And I have css code for rounded class
.material-icons.material-icons--rounded
font-family: 'Material Icons Round';
In the page, star icon looks like this:
If i increase the font-size it turns into this:
Where does that border coming from and how to remove it ?
Edit: I have created a pen to reproduce the problem https://codepen.io/anon/pen/wOJdMZ
@import "https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round";
.material-icons--rounded
font-family: "Material Icons Round";
i
color: red;
.material-icons
font-size: 60px;
.size--2
font-size: 90px;
<table>
<tr>
<th>Rounded</th>
<td><i class="material-icons material-icons--rounded">star</i></td>
<td><i class="material-icons material-icons--rounded size--2">star</i></td>
<td><i class="material-icons material-icons--rounded">star_half</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_half</i></td>
<td><i class="material-icons material-icons--rounded">star_border</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_border</i></td>
</tr>
<tr>
<th>Not Rounded<br>
<td><i class="material-icons">star</i></td>
<td><i class="material-icons size--2">star</i></td>
<td><i class="material-icons">star_half</i></td>
<td><i class="material-icons size--2">star_half</i></td>
<td><i class="material-icons">star_border</i></td>
<td><i class="material-icons size--2">star_border</i></td>
</tr>
</table>
UPDATE:
Rounded icon colors are not changing on some screen sizes.
I have updated the code snippet which is attached to the question.
- On the 1920x1080 monitor, all icons are red.
- On the 2560 x 1600 macbook retina screen, rounded icons are black and the others are red. (This doesn't seem to be a problem on Chrome or Firefox)
css material-design google-material-icons
Can you provide the related HTML/CSS so it can be analyzed a bit easier? Without context it becomes a bit hard to debug this
– Billie Bobbel
Mar 7 at 11:01
Sure, I added a codepen link
– Solhan
Mar 7 at 11:04
Thanks, the<i>
tag is setting a 1px border. You can remove it like this:i border: 0;
for all the <i> tags or make it more specific by adding.material-icons border: 0;
to your stylesheet
– Billie Bobbel
Mar 7 at 11:06
@BillieBobbel I updated the pen again. It seems<i>
doesn't get's a border.
– Solhan
Mar 7 at 11:09
Yeah, my bad... Codepen got confused by a missing semicolon; But it seems @yunzen figured out it was due to a borked glyph...
– Billie Bobbel
Mar 7 at 11:45
add a comment |
I have included Material Icons Rounded to my webpage like this:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round" rel="stylesheet">
And I have css code for rounded class
.material-icons.material-icons--rounded
font-family: 'Material Icons Round';
In the page, star icon looks like this:
If i increase the font-size it turns into this:
Where does that border coming from and how to remove it ?
Edit: I have created a pen to reproduce the problem https://codepen.io/anon/pen/wOJdMZ
@import "https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round";
.material-icons--rounded
font-family: "Material Icons Round";
i
color: red;
.material-icons
font-size: 60px;
.size--2
font-size: 90px;
<table>
<tr>
<th>Rounded</th>
<td><i class="material-icons material-icons--rounded">star</i></td>
<td><i class="material-icons material-icons--rounded size--2">star</i></td>
<td><i class="material-icons material-icons--rounded">star_half</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_half</i></td>
<td><i class="material-icons material-icons--rounded">star_border</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_border</i></td>
</tr>
<tr>
<th>Not Rounded<br>
<td><i class="material-icons">star</i></td>
<td><i class="material-icons size--2">star</i></td>
<td><i class="material-icons">star_half</i></td>
<td><i class="material-icons size--2">star_half</i></td>
<td><i class="material-icons">star_border</i></td>
<td><i class="material-icons size--2">star_border</i></td>
</tr>
</table>
UPDATE:
Rounded icon colors are not changing on some screen sizes.
I have updated the code snippet which is attached to the question.
- On the 1920x1080 monitor, all icons are red.
- On the 2560 x 1600 macbook retina screen, rounded icons are black and the others are red. (This doesn't seem to be a problem on Chrome or Firefox)
css material-design google-material-icons
I have included Material Icons Rounded to my webpage like this:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round" rel="stylesheet">
And I have css code for rounded class
.material-icons.material-icons--rounded
font-family: 'Material Icons Round';
In the page, star icon looks like this:
If i increase the font-size it turns into this:
Where does that border coming from and how to remove it ?
Edit: I have created a pen to reproduce the problem https://codepen.io/anon/pen/wOJdMZ
@import "https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round";
.material-icons--rounded
font-family: "Material Icons Round";
i
color: red;
.material-icons
font-size: 60px;
.size--2
font-size: 90px;
<table>
<tr>
<th>Rounded</th>
<td><i class="material-icons material-icons--rounded">star</i></td>
<td><i class="material-icons material-icons--rounded size--2">star</i></td>
<td><i class="material-icons material-icons--rounded">star_half</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_half</i></td>
<td><i class="material-icons material-icons--rounded">star_border</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_border</i></td>
</tr>
<tr>
<th>Not Rounded<br>
<td><i class="material-icons">star</i></td>
<td><i class="material-icons size--2">star</i></td>
<td><i class="material-icons">star_half</i></td>
<td><i class="material-icons size--2">star_half</i></td>
<td><i class="material-icons">star_border</i></td>
<td><i class="material-icons size--2">star_border</i></td>
</tr>
</table>
UPDATE:
Rounded icon colors are not changing on some screen sizes.
I have updated the code snippet which is attached to the question.
- On the 1920x1080 monitor, all icons are red.
- On the 2560 x 1600 macbook retina screen, rounded icons are black and the others are red. (This doesn't seem to be a problem on Chrome or Firefox)
@import "https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round";
.material-icons--rounded
font-family: "Material Icons Round";
i
color: red;
.material-icons
font-size: 60px;
.size--2
font-size: 90px;
<table>
<tr>
<th>Rounded</th>
<td><i class="material-icons material-icons--rounded">star</i></td>
<td><i class="material-icons material-icons--rounded size--2">star</i></td>
<td><i class="material-icons material-icons--rounded">star_half</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_half</i></td>
<td><i class="material-icons material-icons--rounded">star_border</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_border</i></td>
</tr>
<tr>
<th>Not Rounded<br>
<td><i class="material-icons">star</i></td>
<td><i class="material-icons size--2">star</i></td>
<td><i class="material-icons">star_half</i></td>
<td><i class="material-icons size--2">star_half</i></td>
<td><i class="material-icons">star_border</i></td>
<td><i class="material-icons size--2">star_border</i></td>
</tr>
</table>
@import "https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round";
.material-icons--rounded
font-family: "Material Icons Round";
i
color: red;
.material-icons
font-size: 60px;
.size--2
font-size: 90px;
<table>
<tr>
<th>Rounded</th>
<td><i class="material-icons material-icons--rounded">star</i></td>
<td><i class="material-icons material-icons--rounded size--2">star</i></td>
<td><i class="material-icons material-icons--rounded">star_half</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_half</i></td>
<td><i class="material-icons material-icons--rounded">star_border</i></td>
<td><i class="material-icons material-icons--rounded size--2">star_border</i></td>
</tr>
<tr>
<th>Not Rounded<br>
<td><i class="material-icons">star</i></td>
<td><i class="material-icons size--2">star</i></td>
<td><i class="material-icons">star_half</i></td>
<td><i class="material-icons size--2">star_half</i></td>
<td><i class="material-icons">star_border</i></td>
<td><i class="material-icons size--2">star_border</i></td>
</tr>
</table>
css material-design google-material-icons
css material-design google-material-icons
edited Mar 8 at 9:22
yunzen
21.7k85081
21.7k85081
asked Mar 7 at 10:45
SolhanSolhan
337211
337211
Can you provide the related HTML/CSS so it can be analyzed a bit easier? Without context it becomes a bit hard to debug this
– Billie Bobbel
Mar 7 at 11:01
Sure, I added a codepen link
– Solhan
Mar 7 at 11:04
Thanks, the<i>
tag is setting a 1px border. You can remove it like this:i border: 0;
for all the <i> tags or make it more specific by adding.material-icons border: 0;
to your stylesheet
– Billie Bobbel
Mar 7 at 11:06
@BillieBobbel I updated the pen again. It seems<i>
doesn't get's a border.
– Solhan
Mar 7 at 11:09
Yeah, my bad... Codepen got confused by a missing semicolon; But it seems @yunzen figured out it was due to a borked glyph...
– Billie Bobbel
Mar 7 at 11:45
add a comment |
Can you provide the related HTML/CSS so it can be analyzed a bit easier? Without context it becomes a bit hard to debug this
– Billie Bobbel
Mar 7 at 11:01
Sure, I added a codepen link
– Solhan
Mar 7 at 11:04
Thanks, the<i>
tag is setting a 1px border. You can remove it like this:i border: 0;
for all the <i> tags or make it more specific by adding.material-icons border: 0;
to your stylesheet
– Billie Bobbel
Mar 7 at 11:06
@BillieBobbel I updated the pen again. It seems<i>
doesn't get's a border.
– Solhan
Mar 7 at 11:09
Yeah, my bad... Codepen got confused by a missing semicolon; But it seems @yunzen figured out it was due to a borked glyph...
– Billie Bobbel
Mar 7 at 11:45
Can you provide the related HTML/CSS so it can be analyzed a bit easier? Without context it becomes a bit hard to debug this
– Billie Bobbel
Mar 7 at 11:01
Can you provide the related HTML/CSS so it can be analyzed a bit easier? Without context it becomes a bit hard to debug this
– Billie Bobbel
Mar 7 at 11:01
Sure, I added a codepen link
– Solhan
Mar 7 at 11:04
Sure, I added a codepen link
– Solhan
Mar 7 at 11:04
Thanks, the
<i>
tag is setting a 1px border. You can remove it like this: i border: 0;
for all the <i> tags or make it more specific by adding .material-icons border: 0;
to your stylesheet– Billie Bobbel
Mar 7 at 11:06
Thanks, the
<i>
tag is setting a 1px border. You can remove it like this: i border: 0;
for all the <i> tags or make it more specific by adding .material-icons border: 0;
to your stylesheet– Billie Bobbel
Mar 7 at 11:06
@BillieBobbel I updated the pen again. It seems
<i>
doesn't get's a border.– Solhan
Mar 7 at 11:09
@BillieBobbel I updated the pen again. It seems
<i>
doesn't get's a border.– Solhan
Mar 7 at 11:09
Yeah, my bad... Codepen got confused by a missing semicolon; But it seems @yunzen figured out it was due to a borked glyph...
– Billie Bobbel
Mar 7 at 11:45
Yeah, my bad... Codepen got confused by a missing semicolon; But it seems @yunzen figured out it was due to a borked glyph...
– Billie Bobbel
Mar 7 at 11:45
add a comment |
2 Answers
2
active
oldest
votes
There seems to be a problem with the glyph itself
If you download the SVG glyphs from here
https://material.io/tools/icons/?icon=star&style=round
and here https://material.io/tools/icons/?icon=star&style=round
you can see the rounded glyph is wrong and the pointy star is correct
You should file an issue to https://github.com/material-components
some info to the material team
The path is path("M 0 0 h 24 v 24 H 0 V 0 Z m 0 0 h 24 v 24 H 0 V 0 Z m 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z");
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
but should be path("M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z")
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
1
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
I+1
ed this issue
– yunzen
Mar 7 at 12:45
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
|
show 4 more comments
The issue was... you added font-size to both classes.
I replaced it with a new class size--1
.size--1
font-size: 60px;
.size--2
font-size: 90px;
.material-icons--rounded
font-family: 'Material Icons Round;
material-icons class didn't need that style... (he is applying the icon, if I understood right)
HTML:
<i class="material-icons material-icons--rounded size--1">star</i>
<i class="material-icons material-icons--rounded size--2">star</i>
Saw the updated pen...
I've tried
outline: none !important;
border: none !important;
box-shadow: none !important;
None of these worked...
And star becomes to square, starting from font-size: 67px... even transform: scale(2,2)
didn't helped. Something wrong with rounded
class))
Thank you, but if we add.material-icons--rounded
class to the end, icons doesnt rounding
– Solhan
Mar 7 at 11:19
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55041894%2frounded-material-icons-border-and-color-problem%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There seems to be a problem with the glyph itself
If you download the SVG glyphs from here
https://material.io/tools/icons/?icon=star&style=round
and here https://material.io/tools/icons/?icon=star&style=round
you can see the rounded glyph is wrong and the pointy star is correct
You should file an issue to https://github.com/material-components
some info to the material team
The path is path("M 0 0 h 24 v 24 H 0 V 0 Z m 0 0 h 24 v 24 H 0 V 0 Z m 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z");
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
but should be path("M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z")
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
1
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
I+1
ed this issue
– yunzen
Mar 7 at 12:45
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
|
show 4 more comments
There seems to be a problem with the glyph itself
If you download the SVG glyphs from here
https://material.io/tools/icons/?icon=star&style=round
and here https://material.io/tools/icons/?icon=star&style=round
you can see the rounded glyph is wrong and the pointy star is correct
You should file an issue to https://github.com/material-components
some info to the material team
The path is path("M 0 0 h 24 v 24 H 0 V 0 Z m 0 0 h 24 v 24 H 0 V 0 Z m 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z");
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
but should be path("M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z")
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
1
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
I+1
ed this issue
– yunzen
Mar 7 at 12:45
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
|
show 4 more comments
There seems to be a problem with the glyph itself
If you download the SVG glyphs from here
https://material.io/tools/icons/?icon=star&style=round
and here https://material.io/tools/icons/?icon=star&style=round
you can see the rounded glyph is wrong and the pointy star is correct
You should file an issue to https://github.com/material-components
some info to the material team
The path is path("M 0 0 h 24 v 24 H 0 V 0 Z m 0 0 h 24 v 24 H 0 V 0 Z m 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z");
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
but should be path("M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z")
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
There seems to be a problem with the glyph itself
If you download the SVG glyphs from here
https://material.io/tools/icons/?icon=star&style=round
and here https://material.io/tools/icons/?icon=star&style=round
you can see the rounded glyph is wrong and the pointy star is correct
You should file an issue to https://github.com/material-components
some info to the material team
The path is path("M 0 0 h 24 v 24 H 0 V 0 Z m 0 0 h 24 v 24 H 0 V 0 Z m 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z");
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
but should be path("M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z")
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0zm12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 24 24" wtx-context="97FAD225-6CA6-4D16-A578-52C0523A648F"><path d="M 12 17.27 l 4.15 2.51 c 0.76 0.46 1.69 -0.22 1.49 -1.08 l -1.1 -4.72 l 3.67 -3.18 c 0.67 -0.58 0.31 -1.68 -0.57 -1.75 l -4.83 -0.41 l -1.89 -4.46 c -0.34 -0.81 -1.5 -0.81 -1.84 0 L 9.19 8.63 l -4.83 0.41 c -0.88 0.07 -1.24 1.17 -0.57 1.75 l 3.67 3.18 l -1.1 4.72 c -0.2 0.86 0.73 1.54 1.49 1.08 l 4.15 -2.5 Z"/></svg>
edited Mar 7 at 11:42
answered Mar 7 at 11:35
yunzenyunzen
21.7k85081
21.7k85081
1
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
I+1
ed this issue
– yunzen
Mar 7 at 12:45
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
|
show 4 more comments
1
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
I+1
ed this issue
– yunzen
Mar 7 at 12:45
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
1
1
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
Thank you, I have opened an issue, I hope they will fix it soon
– Solhan
Mar 7 at 12:08
I
+1
ed this issue– yunzen
Mar 7 at 12:45
I
+1
ed this issue– yunzen
Mar 7 at 12:45
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
Updated the question Sir, probably there is another bug about rounded icon colors.
– Solhan
Mar 8 at 0:06
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
@Solhan I don't see your second issue. Are you sure, you didn't fork the pen?
– yunzen
Mar 8 at 7:49
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
I didn't update the pen, I updated the code snippet attached to the question.
– Solhan
Mar 8 at 8:13
|
show 4 more comments
The issue was... you added font-size to both classes.
I replaced it with a new class size--1
.size--1
font-size: 60px;
.size--2
font-size: 90px;
.material-icons--rounded
font-family: 'Material Icons Round;
material-icons class didn't need that style... (he is applying the icon, if I understood right)
HTML:
<i class="material-icons material-icons--rounded size--1">star</i>
<i class="material-icons material-icons--rounded size--2">star</i>
Saw the updated pen...
I've tried
outline: none !important;
border: none !important;
box-shadow: none !important;
None of these worked...
And star becomes to square, starting from font-size: 67px... even transform: scale(2,2)
didn't helped. Something wrong with rounded
class))
Thank you, but if we add.material-icons--rounded
class to the end, icons doesnt rounding
– Solhan
Mar 7 at 11:19
add a comment |
The issue was... you added font-size to both classes.
I replaced it with a new class size--1
.size--1
font-size: 60px;
.size--2
font-size: 90px;
.material-icons--rounded
font-family: 'Material Icons Round;
material-icons class didn't need that style... (he is applying the icon, if I understood right)
HTML:
<i class="material-icons material-icons--rounded size--1">star</i>
<i class="material-icons material-icons--rounded size--2">star</i>
Saw the updated pen...
I've tried
outline: none !important;
border: none !important;
box-shadow: none !important;
None of these worked...
And star becomes to square, starting from font-size: 67px... even transform: scale(2,2)
didn't helped. Something wrong with rounded
class))
Thank you, but if we add.material-icons--rounded
class to the end, icons doesnt rounding
– Solhan
Mar 7 at 11:19
add a comment |
The issue was... you added font-size to both classes.
I replaced it with a new class size--1
.size--1
font-size: 60px;
.size--2
font-size: 90px;
.material-icons--rounded
font-family: 'Material Icons Round;
material-icons class didn't need that style... (he is applying the icon, if I understood right)
HTML:
<i class="material-icons material-icons--rounded size--1">star</i>
<i class="material-icons material-icons--rounded size--2">star</i>
Saw the updated pen...
I've tried
outline: none !important;
border: none !important;
box-shadow: none !important;
None of these worked...
And star becomes to square, starting from font-size: 67px... even transform: scale(2,2)
didn't helped. Something wrong with rounded
class))
The issue was... you added font-size to both classes.
I replaced it with a new class size--1
.size--1
font-size: 60px;
.size--2
font-size: 90px;
.material-icons--rounded
font-family: 'Material Icons Round;
material-icons class didn't need that style... (he is applying the icon, if I understood right)
HTML:
<i class="material-icons material-icons--rounded size--1">star</i>
<i class="material-icons material-icons--rounded size--2">star</i>
Saw the updated pen...
I've tried
outline: none !important;
border: none !important;
box-shadow: none !important;
None of these worked...
And star becomes to square, starting from font-size: 67px... even transform: scale(2,2)
didn't helped. Something wrong with rounded
class))
edited Mar 7 at 11:49
answered Mar 7 at 11:12
BubuBubu
235
235
Thank you, but if we add.material-icons--rounded
class to the end, icons doesnt rounding
– Solhan
Mar 7 at 11:19
add a comment |
Thank you, but if we add.material-icons--rounded
class to the end, icons doesnt rounding
– Solhan
Mar 7 at 11:19
Thank you, but if we add
.material-icons--rounded
class to the end, icons doesnt rounding– Solhan
Mar 7 at 11:19
Thank you, but if we add
.material-icons--rounded
class to the end, icons doesnt rounding– Solhan
Mar 7 at 11:19
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55041894%2frounded-material-icons-border-and-color-problem%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you provide the related HTML/CSS so it can be analyzed a bit easier? Without context it becomes a bit hard to debug this
– Billie Bobbel
Mar 7 at 11:01
Sure, I added a codepen link
– Solhan
Mar 7 at 11:04
Thanks, the
<i>
tag is setting a 1px border. You can remove it like this:i border: 0;
for all the <i> tags or make it more specific by adding.material-icons border: 0;
to your stylesheet– Billie Bobbel
Mar 7 at 11:06
@BillieBobbel I updated the pen again. It seems
<i>
doesn't get's a border.– Solhan
Mar 7 at 11:09
Yeah, my bad... Codepen got confused by a missing semicolon; But it seems @yunzen figured out it was due to a borked glyph...
– Billie Bobbel
Mar 7 at 11:45