Closed cpboyd closed 8 years ago
@cpboyd Do you know when this behavior was changed? AFAIK text-decoration: underline
is normally applied by <a>
s so you need to style the <a>
to remove it.
The same example with <paper-button>
replaced by generic <span>
: http://jsbin.com/yerexob/edit?html,output
@keanulee Ah, I see. The span is a good point.
I do know that as late as February or March, I had no underline on the paper button text with an anchor tag. This was without setting the text-decoration on either element.
Description
A recent change seems to have added the underline to text if the
paper-button
is surrounded by an anchor tag.As a workaround, I've determined that you can simply use
text-decoration
on the anchor tag rather than the paper-button.However, since other text CSS seems to work on the
paper-button
(like textcolor
in the demo below), I'm thinking this might be a bug.Expected outcome
You should be able to mark the
paper-button
withtext-decoration: none;
and remove any underline added by an anchor tag.Actual outcome
The
text-decoration
CSS has no effect on thepaper-button
.Live Demo
https://jsfiddle.net/zc6uaed6/
Steps to reproduce
paper-button
element within ana
anchor tag.paper-button
, e.g. to remove the underline.Browsers Affected