Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ::before (pseudo elements) instead of :before (pseudo classes) #8618

Closed
tofumatt opened this issue Aug 6, 2018 · 4 comments · Fixed by #8647
Closed

Use ::before (pseudo elements) instead of :before (pseudo classes) #8618

tofumatt opened this issue Aug 6, 2018 · 4 comments · Fixed by #8647
Assignees
Labels
[Type] Code Quality Issues or PRs that relate to code quality

Comments

@tofumatt
Copy link
Member

tofumatt commented Aug 6, 2018

We should be using ::before across the project instead of :before; browser support is there and it's more semantically correct. See:
#8588 (comment)

We should probably add a lint warning to the project as well so future devs don't use :before instead of ::before by mistake, once this is closed.

@noisysocks
Copy link
Member

Partially addressed by #8630. Once there's a lint rule added we can close this issue 🙂 – see #8630 (comment) for context.

@tomjn
Copy link
Contributor

tomjn commented Aug 7, 2018

Should we do the same for :after vs ::after?

@tofumatt
Copy link
Member Author

tofumatt commented Aug 7, 2018

Yes. 😄

@ntwb
Copy link
Member

ntwb commented Aug 7, 2018

::after is taken care of in #8647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants