Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

increase zIndex for sticky sidebar - #134

Merged
katydecorah merged 5 commits into
masterfrom
sticky-z-index
May 30, 2019
Merged

katydecorah merged 5 commits into
masterfrom
sticky-z-index

Conversation

@katydecorah

Copy link
Copy Markdown
Contributor

While reviewing https://github.com/mapbox/studio-manual/pull/73 I noticed that the sticky sidebar has a zIndex fight with the illustrations.

image

We updated the zIndex for the TopBarSticker to 3 in #67 and I think we should do the same for the sidebar sticky navigation.

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh. The problem with this is that the sidebar content is above the topbar content (using the Search component here to test):

ugh

We could consider:

  • Using innerZ={2} here
  • If that isn't enough... bump TopbarSticker to innerZ={4}

Z-indexes were a bit of a struggle in the initial development of these components. 🙈

@katydecorah

Copy link
Copy Markdown
Contributor Author

🤦‍♂ thanks for catching that. I think the best method is to bump up TopbarSticker

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 👌

Katy DeCorah added 3 commits May 30, 2019 16:31
@katydecorah
katydecorah merged commit c758fb0 into master May 30, 2019
@katydecorah
katydecorah deleted the sticky-z-index branch May 30, 2019 20:42
katydecorah pushed a commit that referenced this pull request Jun 5, 2019
* master:
  add snapshot tests (#136)
  0.15.1
  Prepare 0.15.1
  0.15.0
  Prepare 0.15.0
  [search] adds segment tracking for queries and clicks (#140)
  [search] add ability to filter results (#138)
  increase modal zindex to prevent collision with topbar sticker (#139)
  0.14.0
  Prepare 0.14.0
  [PageLayout/TopbarSticker] increase zIndex (#134)
  [search] Introduce search modal (#133)
  prepare 0.13.0
  adjust version-sort for XX.XX.XX format (#132)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants