Coder Social home page Coder Social logo

Comments (4)

bartaz avatar bartaz commented on June 8, 2024 1

@vladimir-cucu Thanks. I will have a look if we can remove z-index from notifications (and/or highlight bars).

But overall, to avoid such issues, I'd suggest not using z-index of 1 on anything that is supposed to be on top of other things. We don't have any solid guidelines around that, as this is always kind of a chicken-and-egg problem of finding things that are supposed to be on top of each other and those that don't.

We have this example which features various of overlaying elements in Vanilla: https://vanillaframework.io/docs/examples/templates/z-index

You can use that to have a look at their z-indexes.
Overall modals, etc (on top of everything) use 100 or above.
Tooltips are at 11. Contextual menu at 9.
Top navigation (dropdowns) are at 5.
Flat content may have things at 1.

Based on that I'd suggest placing your top navigation somewhere between 5-10.

from vanilla-framework.

vladimir-cucu avatar vladimir-cucu commented on June 8, 2024

@bartaz Thanks for the detailed explanation! We'll set the z-index to 5 as suggested.

from vanilla-framework.

huwshimi avatar huwshimi commented on June 8, 2024

Based on that I'd suggest placing your top navigation somewhere between 5-10.

Just in case it's not clear, that top nav is from the application layout and the z-index is set to 1 here: https://github.com/canonical/vanilla-framework/blob/main/scss/_layouts_application-panels.scss#L24.

Should we update the sticky header z-index to 5 in Vanilla to fix it for everyone or is that likely to cause other issues?

from vanilla-framework.

bartaz avatar bartaz commented on June 8, 2024

Ah, sorry. I was looking for that into application layout, but missed that it's only in sticky option in panels.
Of course it makes sense to fix it directly there.

from vanilla-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.