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

Z-index strategy #3078

Closed
lyubomir-popov opened this issue May 19, 2020 · 2 comments
Closed

Z-index strategy #3078

lyubomir-popov opened this issue May 19, 2020 · 2 comments
Labels
Epic Epics contain issues related to project

Comments

@lyubomir-popov
Copy link
Contributor

We have had some z-index clashes, e.g.:

canonical/snapcraft.io#2765
#3068

Which highlights a bigger issue - there's no way of knowing what z-index to use to position something above / under a certain component. In additino to fixing these, we need to document them so you can easily decide which range to use if you want to go above / under a certain component. An interesting article on the subject:

https://www.smashingmagazine.com/2019/04/z-index-component-based-web-application/

@lyubomir-popov lyubomir-popov added the Epic Epics contain issues related to project label May 19, 2020
@anthonydillon
Copy link
Contributor

We have tackled this in the passed using z-index systems such as:

  • Juju GUI - This pattern allowed for map of the z-index for each component
  • Juju dashboard - More limited but allows 11 layers.

The issue here is the combination of a suite of components. This can not be managed from a central system as the examples above are. There as been a long discussion on the subject in the practises.

I would suggest we try and keep this system if a system at all. As simple as possible. I have not seen many of these issues and the two found initially could be resolved without causing further issues.

@lyubomir-popov
Copy link
Contributor Author

Thanks for pointing to the discussion @anthonydillon. Wasn't envisioning anything complicated, maybe something as simple as adding the list of ranges in that other discussion in a more visible place in the documentation might suffice if that's still valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Epics contain issues related to project
Projects
None yet
Development

No branches or pull requests

2 participants