Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Deprecated selector in git-plus/styles/git-plus.less #537

Closed
molovo opened this issue Nov 10, 2016 · 9 comments
Closed

Deprecated selector in git-plus/styles/git-plus.less #537

molovo opened this issue Nov 10, 2016 · 9 comments

Comments

@molovo
Copy link

molovo commented Nov 10, 2016

In git-plus/styles/git-plus.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • atom-text-editor .diff .unimportant, atom-text-editor::shadow .diff .unimportant => atom-text-editor .diff .unimportant, atom-text-editor.editor .syntax--diff .syntax--unimportant

  • atom-text-editor .diff .info, atom-text-editor::shadow .diff .info => atom-text-editor .diff .info, atom-text-editor.editor .syntax--diff .syntax--info

  • atom-text-editor .diff .deletion, atom-text-editor::shadow .diff .deletion => atom-text-editor .diff .deletion, atom-text-editor.editor .syntax--diff .syntax--deletion

  • atom-text-editor .diff .insertion, atom-text-editor::shadow .diff .insertion => atom-text-editor .diff .insertion, atom-text-editor.editor .syntax--diff .syntax--insertion

  • atom-text-editor .diff .markup.removed.diff, atom-text-editor::shadow .diff .markup.removed.diff, atom-text-editor .diff .meta.diff.header.from-file, atom-text-editor::shadow .diff .meta.diff.header.from-file => atom-text-editor .diff .markup.removed.diff, atom-text-editor.editor .syntax--diff .syntax--markup.syntax--removed.syntax--diff, atom-text-editor .diff .meta.diff.header.from-file, atom-text-editor.editor .syntax--diff .syntax--meta.syntax--diff.syntax--header.syntax--from-file

  • atom-text-editor .diff .markup.added.diff, atom-text-editor::shadow .diff .markup.added.diff, atom-text-editor .diff .meta.diff.header.to-file, atom-text-editor::shadow .diff .meta.diff.header.to-file => atom-text-editor .diff .markup.added.diff, atom-text-editor.editor .syntax--diff .syntax--markup.syntax--added.syntax--diff, atom-text-editor .diff .meta.diff.header.to-file, atom-text-editor.editor .syntax--diff .syntax--meta.syntax--diff.syntax--header.syntax--to-file

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

@akonwi
Copy link
Owner

akonwi commented Nov 10, 2016

i've pushed changes for this. Can you validate this has been resolved?

@molovo
Copy link
Author

molovo commented Nov 10, 2016

The vast majority of the deprecation warnings are gone, but this line still has the atom-text-editor::shadow declaration, which needs to be replaced with atom-text-editor.editor. I'll PR it now.

Nevermind, I just realised you added the correct selectors below, so it should work in both versions. That's a nice idea by the way

@akonwi
Copy link
Owner

akonwi commented Nov 10, 2016

Thanks! Ok I'll keep this open for a while and if you come across more errors related to these selectors we can tackle them.

@klk1010
Copy link

klk1010 commented Jan 4, 2017

I'm still seeing deprecation warnings in v 7.0.4.

git-plus/styles/git-plus.less
Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

atom-text-editor .diff .unimportant, atom-text-editor::shadow .diff .unimportant => atom-text-editor .diff .unimportant, atom-text-editor.editor .syntax--diff .syntax--unimportant
atom-text-editor .diff .info, atom-text-editor::shadow .diff .info => atom-text-editor .diff .info, atom-text-editor.editor .syntax--diff .syntax--info
atom-text-editor .diff .deletion, atom-text-editor::shadow .diff .deletion => atom-text-editor .diff .deletion, atom-text-editor.editor .syntax--diff .syntax--deletion
atom-text-editor .diff .insertion, atom-text-editor::shadow .diff .insertion => atom-text-editor .diff .insertion, atom-text-editor.editor .syntax--diff .syntax--insertion
atom-text-editor .diff .markup.removed.diff, atom-text-editor::shadow .diff .markup.removed.diff, atom-text-editor .diff .meta.diff.header.from-file, atom-text-editor::shadow .diff .meta.diff.header.from-file => atom-text-editor .diff .markup.removed.diff, atom-text-editor.editor .syntax--diff .syntax--markup.syntax--removed.syntax--diff, atom-text-editor .diff .meta.diff.header.from-file, atom-text-editor.editor .syntax--diff .syntax--meta.syntax--diff.syntax--header.syntax--from-file
atom-text-editor .diff .markup.added.diff, atom-text-editor::shadow .diff .markup.added.diff, atom-text-editor .diff .meta.diff.header.to-file, atom-text-editor::shadow .diff .meta.diff.header.to-file => atom-text-editor .diff .markup.added.diff, atom-text-editor.editor .syntax--diff .syntax--markup.syntax--added.syntax--diff, atom-text-editor .diff .meta.diff.header.to-file, atom-text-editor.editor .syntax--diff .syntax--meta.syntax--diff.syntax--header.syntax--to-file
Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

@molovo
Copy link
Author

molovo commented Jan 4, 2017

@klk1010 The old and new selectors are both present in the CSS, to preserve backward compatibility

@klk1010
Copy link

klk1010 commented Jan 9, 2017

@molovo Indeed they are. I apologize for not looking at that more closely. :insert_shamed_face_here:

@Robin-front
Copy link

atom1.13.0 mac also

@akonwi
Copy link
Owner

akonwi commented Jan 11, 2017

@Robin-front thanks! I was waiting for 1.13 to come out. Now I can remove the old selectors and restrict the package to the newest version of atom that doesn't support the shadow selectors

@jesusvallez
Copy link

mac here! atom 1.13.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants