I noticed a couple of issues after updating my instance to play around with the new native themes.
Included Themes (subthemes) seem to appear in random order. Should/could this be alphabetical, like the list on the left?
Clicking Edit CSS/HTML does not indicate what page I’ve navigated to. I’m assuming it’s common → CSS, but the UI doesn’t make it clear.
CSS editor is giving incorrect errors and bad warnings.
Clicking Themes while in the CSS/HTML editor leads to a blank-ish page. Clicking again does not resolve. Clicking a different tab and returning, or refreshing the page is required.
Not a bug, see post 10. Migration error: Had a script in the Desktop </body> tab of a customization - it is now in the Common </body>.
Clicking on a tab in the editor does not focus the cursor in the text area (Chrome Desktop 57 - Stable). A second click in the text area is needed before anything can be typed/selected with keyboard shortcuts.
If there is invalid SCSS, errors are displayed on public pages!
Save button doesn’t seem to work consistently…I don’t have a consistent repro yet - but while trying to move CSS from Desktop/Mobile to Common, I’ve noticed that after deleting everything from Desktop, clicking save, switching tabs, and then returning the CSS I just completely deleted is still there. It appears to be a purely UI issue. Refreshing the page after clicking save does show that the content is gone. Is the UI caching the view for some reason? OK, now I’m just confused. Selected all text, deleted it, clicked save, waited until saving... went away, refreshed page, text was still there! Something’s wonky with the save button…
This might be it…this seems to be consistent:
Have a CSS customization (for example on Desktop).
Select everything and delete.
Click Save.
Navigate to another tab (like Mobile).
Make any edit.
Click Save.
Return to previous tab (Desktop).
Even after a refresh, the content deleted in step 2 is still there. However, if a refresh is done between steps 3 & 4, the content is removed successfully even after completing the remaining steps.
Strange CSS bug for line numbers when there are >9 lines (double digits) displayed in the age editor. This occurs regardless of the content of the editor or browser width.
Found another. Deleting a color scheme and quickly selecting another before the UI refreshes results in the “deleted” theme appearing instead of the non-deleted one. A refresh is required to resolve this.
Sorting of themes seems to be case-sensitive after this commit.
Nitpicky, but… when looking at Edit CSS/HTML for a theme, the work Mobile is lower than the words Common and Desktop. It appears to be caused by the line below. I understand why the icon size is increased (boy is it tiny by default) - but is there a better way to do this without also shifting the text down?:
The new native themes are really a big step forward! Congrats! It’s also good that existing customizations are being smoothly adopted into the new themes framework. Or maybe not so smoothly? At least from an admin-user perspective I’m having some difficulties getting my head around the new way of native themes. I suppose I’m not the only one so I’d like to do some thinking out loud here to try and come to grips with it all. Please confirm or correct as appropriate:
I guess the first thing to understand is that your “main” page for customization is no longer the CSS/HTML tab (now called “Themes”) but one step further down: the “Default” sub-tab. This is where I get an overview of my default theme’s settings, including the colour scheme. (It’s a bit confusing at first, because it is no longer evident which colour scheme is being used by looking at the Color tab.) Wouldn’t it make sense to display the default theme sub-tab by default when navigating to the themes tab?
Each of my previous customization elements (such as: “Avatar shadow” or “Add Link to hamburger menu”) has now become a theme in it’s own right. I understand that this is a technical necessity for transitioning but not really the way you would build a native theme from scratch, right? Or maybe it is, because it allows me to easily turn them on and off like previously (and to re-use them in various themes)? But if that is the idea, I don’t like that fully fledged themes and theme-elements are presented in one list of “themes”, as if they are the same (of course, you can argue that technically they are the same, it’s all a matter of perspective, but for the admin user who’d never treat the design element “Avatar shadow” as a theme in it’s own right, it is not the ideal way of presenting things. I wonder if I’m asking for too much when I suggest to keep themes and theme elements seperate, i.e. in a seperate Theme Elements tab?
When you first look at the new Themes tab, it looks as if all your previous customization elements have been deactivated (because the don’t have an asterisk any more), but that is not the case. Which ones are used can now be seen on the Default-theme sub-tab. But I have some gripes with that: In particular, there is no more easy way of seeing which theme-elements are currently not used in any theme (and might therefore be deleted). So, I’d like to suggest to bring back the asterisk (or some other visual marker) for theme elements that are in use in another theme, similar to the user icon that appears if users can select a theme(-element). That way, it’d be much easier to read the themes list (and perhaps this would also make my above suggestion about a separate theme-element tab superfluous).
After playing with the new native themes for a bit, I wanted to share my general thoughts.
Included Themes list items should be clickable, linking to theme as if clicked in left-side list.
The new “custom sections” display is great! It’s so easy to see at a glance what has been customized - really helpful when multiple customizations are in use.
Thank you, thank you, THANK YOU!! for the new “Common” CSS/HTML tab. No more copying/pasting and wondering if you forgot something.
Edit:
Which CSS tab takes priority? If I have a property on both the Common and Desktop tab (for example) with different values, what will happen?
This feature is brand new and actively a work in progress so PLEASE FOR THE LOVE OF GOD keep all the feedback in one topic as @sam works through it all.
FYI, to my knowledge the only type of comments CSS supports are /* your comment here */
Now SCSS does support // comment styles, but maybe the validator isn’t taking into account SCSS (which seems plausible considering it didn’t like the nesting of classes)
Edited:
Actually, I see why you are getting the warnings, they are legit. It is telling you that
Well, the warnings are gone, but now I’ve got new “errors”. I’m going to hold off on trying more changes until Sam is able to chime in on any potential changes to the CSS validator during the change - as none of these errors/warnings appeared before the recent changes.
Edit: With the first commit listed below this is resolved.
It was in “common” previously, the UI was just super misleading. It said on the screen “desktop” but really it was common. Mobile did not have /head or /body
Hmm I am not sure what to do here, maybe I will stop using the CSS error magic in themes and instead add a GIANT red box in show theme page that tells you your scss is all jacked up and unusable.
The concern that @tophee has (and @pfaffman had in a duplicate topic) is that there’s no indication which themes are in use as “Included Themes” elsewhere. For example, in my case I have 16 themes listed, but only 1 asterisk. At a glance, I have no way of knowing that 14 of the 15 themes without an asterisk are being used, as they’re included in the enabled theme. Does that make sense?