jesseleite / an-old-hope-syntax-atom

āš›ļø Atom theme inspired by a galaxy far far away...
MIT License
86 stars 20 forks source link

Deprecated selector in `an-old-hope-syntax/index.less` #22

Closed qws1986 closed 7 years ago

qws1986 commented 7 years ago

In an-old-hope-syntax/index.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:

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.

jesseleite commented 7 years ago

Already pushed an update with these changes. Gonna close this issue :P

See full commit history

johnroach commented 7 years ago

Just want to inform you that I am still getting same error. Has this change been released?

jesseleite commented 7 years ago

@JohnRoach With Atom 1.13 and theme version 1.0.1? Can you also screenshot the error that you are seeing? I ask because the errors went away for me after I upgraded the theme to 1.0.x.

johnroach commented 7 years ago

Hi @JesseLeite please check out these screenshots:

https://www.evernote.com/l/AOeC5ZKISfdIbI2IuxL85-arQvEjQpJEngkB/image.png

https://www.evernote.com/l/AOczBCNZRWhNpKaTHfmbOBEzYaDqrTi-mHcB/image.png

https://www.evernote.com/l/AOcdtEWayyBLMIJ3PYsnk0QBE3ngZ5-tScYB/image.png

jesseleite commented 7 years ago

Cool, will see what I can figure out.

johnroach commented 7 years ago

@JesseLeite just so you know I did a clean install for atom (needed to install it on a new system) still having same issues.

DerekVance commented 7 years ago

I created a pull request to fix the selectors. I no longer get the deprecation cop alert with this change.

DerekVance commented 7 years ago

I'm not really sure what happened but it looks like this change was implemented and then for some reason the old file was pulled back in. Your commit b6ac56e has these changes but the master branch currently shows the file in it's old state without syntax-- implemented. If you download the zip for release 1.0.1 under the releases is has the old file in it.

jesseleite commented 7 years ago

Hey @DerekVance, thanks for looking into this! The reason I removed that stuff is because I didn't see syntax--tab etc. in the DOM when opening the inspector. Could you explain why syntax--tab is needed if it's not anywhere in the DOM?

DerekVance commented 7 years ago

Hey @JesseLeite no problem I really dig the theme and UI integration. Check out this blog post the Atom Dev team put out, it should shed some light as to why they made some changes. http://blog.atom.io/2016/11/14/removing-shadow-dom-boundary-from-text-editor-elements.html

jesseleite commented 7 years ago

Thanks man šŸ‘ Merged.

DerekVance commented 7 years ago

Thanks for merging, I appreciate it. šŸ‘