-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Toolbar Heatmap & Inspect improvement #1424
Conversation
…), upgrade simmer to version that supports data-attr
1bb4245
to
1644cc8
Compare
…(e.g. <a>), go all the way down (before coming back as high up as needed)
The tests finally pass! (I'm not sure if I did anything TBH...) Thus this is ready for a review. I updated the original task description with various screenshots of what gets fixed with these changes. Posthog.com looks quite good under the toolbar now! To elaborate on one change:
We use ... and I believe it's a very useful and powerful abstraction, as it separates style from meaning. We can add subtle hints in the app that help us efficiently automatize software without relying on CSS This change basically lets simmer hook into data-attr attributes. Whereas before it would go If you add This can make your designs future proof. Technically, yes, you could add a very unique It's especially apparent in the posthog app: Before: After: Is this a controversial change... or is this something cool? It is totally optional to add these |
I think above makes a lot of sense and we should really push people to add data-attr attributes everywhere if they want a robust implementation. Will have a test |
@yakkomajuri - I think this PR has some implications for the docs. |
Yup, will document how the Toolbar finds elements and how using data-attr is the suggested way for a better toolbar experience |
Great, thank you! Just to add, please emphasize that Here's some (raw) text that could be of help:
|
Changes
[data-attr]
in its generated selectors when available.Before:
After:
Before:
After:
Before:
After:
Before:
After:
Before:
After:
Checklist