Skip to content

Commit 87b5460

Browse files
alejandroiglesiasjescalan
authored andcommitted
Revert applying default styling to class-less links only (#305)
Applying default link styling only to links that didn't had any class broke composability since required applying the default style to them if you were composing a component and adding classes.
1 parent 214f842 commit 87b5460

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

axis/typography.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ typography()
515515
small
516516
small()
517517

518-
a[href]:not([class])
518+
a
519519
link()
520520

521521
blockquote

test/fixtures/additive/framework.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,20 @@ small {
109109
opacity: 0.6;
110110
font-weight: normal;
111111
}
112-
a[href]:not([class]) {
112+
a {
113113
color: #0074d9;
114114
text-decoration: none;
115115
-webkit-transition: all .3s ease;
116116
transition: all .3s ease;
117117
border-bottom: 1px solid transparent;
118118
}
119-
a[href]:not([class]):hover {
119+
a:hover {
120120
border-bottom: 1px solid;
121121
}
122-
a[href]:not([class]):hover {
122+
a:hover {
123123
color: #0063b8;
124124
}
125-
a[href]:not([class]):visited {
125+
a:visited {
126126
opacity: 0.8;
127127
}
128128
blockquote {

0 commit comments

Comments
 (0)