Comments (4)
@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.
@bartaz Thanks for the detailed explanation! We'll set the z-index
to 5 as suggested.
from vanilla-framework.
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.
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)
- Height mismatch between search box and search and filter HOT 3
- Bolded headings width mismatches with side navigation HOT 1
- `p-stepped-list__item` has padding in the wrong place
- Stepped lists always show zero count for nested ordered lists HOT 3
- Top border of table mobile card is different
- Stepped lists grid is broken in small screens HOT 1
- Application layout doesn't accommodate tag logos HOT 2
- Broken Link to Alphabet of Accessibility Issues HOT 1
- Side bar items with sub pages are not clickable HOT 5
- Slider shows white background on paper theme with Firefox HOT 2
- Improve the way React component can extend Vanilla %placeholders
- Latest Vanilla turns white links in global nav black HOT 1
- row--25-75 - col containers do not set grid context properly HOT 1
- Grid: provide 3 levels of nesting HOT 9
- Unclear usage of horizontal lines between old hr docs and new rule component
- Adding grid usage explanation to app layout when l-nav is in is-collapsed state. HOT 2
- Heading anchor links styling HOT 13
- Collapsable side panel HOT 5
- (Firefox) Holding shift while clicking a checkbox causes the click to not be registered HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vanilla-framework.