Skip to content

Commit

Permalink
move keys that require !important to the && selector
Browse files Browse the repository at this point in the history
...which glamor offers to increase specifity
(ref. https://github.com/threepointone/glamor/blob/master/docs/selectors.md)
via @fk review
`src/components/blog-post-preview-item.js`
  • Loading branch information
rdela committed Jun 18, 2018
1 parent b9c097e commit c495ea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/src/components/blog-post-preview-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class BlogPostPreviewItem extends React.Component {
<Link
to={post.frontmatter.author.fields.slug}
css={{
boxShadow: `none !important`,
borderBottom: `0 !important`,
position: `relative`,
zIndex: 1,
"&&": {
boxShadow: `none !important`,
borderBottom: `0 !important`,
fontWeight: `normal`,
":hover": {
background: `transparent`,
Expand Down Expand Up @@ -70,10 +70,10 @@ class BlogPostPreviewItem extends React.Component {
<Link
to={post.frontmatter.author.fields.slug}
css={{
color: `${colors.gatsby} !important`,
position: `relative`,
zIndex: 1,
"&&": {
color: `${colors.gatsby} !important`,
fontWeight: `normal`,
":hover": {
background: colors.ui.bright,
Expand Down

0 comments on commit c495ea7

Please sign in to comment.