Skip to content

PB-2303: fix status banner clickability on narrow screens #patch - #170

Merged
rotwurstesser merged 1 commit into
masterfrom
fix-PB-2303-status-banner-mobile-click
Jul 29, 2026
Merged

PB-2303: fix status banner clickability on narrow screens #patch#170
rotwurstesser merged 1 commit into
masterfrom
fix-PB-2303-status-banner-mobile-click

Conversation

@rotwurstesser

@rotwurstesser rotwurstesser commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Fixes the status banner stacking order so warning and danger banners remain clickable on narrow screens. No content or layout-geometry changes.

Tested with pnpm run format:check, pnpm run docs:build, and narrow/desktop click-through.

No pre-merge steps required.

Test link

@asteiner-swisstopo asteiner-swisstopo 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.

Cool thanks, works as expected 👍

Note to myself:

  • position: relative: Makes .status-container a positioned element. This is needed because z-index only applies to positioned elements.
  • z-index: 1: Moves that positioned element into a higher painting order than other elements with the default stacking (z-index: auto).

@asteiner-swisstopo asteiner-swisstopo changed the title PB-2303: fix status banner clickability on narrow screens PB-2303: fix status banner clickability on narrow screens #patch Jul 29, 2026
@rotwurstesser
rotwurstesser merged commit ac4dd44 into master Jul 29, 2026
4 checks passed
@rotwurstesser
rotwurstesser deleted the fix-PB-2303-status-banner-mobile-click branch July 29, 2026 09:18
asteiner-swisstopo added a commit that referenced this pull request Jul 29, 2026
When reviewing #170 I noticed
that one forgets the right commands to setup/serve/format the project.
So, as in all other projects, I have created a minimal Makefile to avoid
that.

The commands:

- `make setup` → `pnpm install`
- `make serve` → `pnpm run docs:dev`
- `make format` → `pnpm run format`
- `make format-check` → `pnpm run format:check`

I did not add a help message or something like that as I find it easier
to have an easily grokable Makefile than a lot of comments etc in it.
asteiner-swisstopo added a commit that referenced this pull request Jul 29, 2026
When reviewing #170 I noticed
that one forgets the right commands to setup/serve/format the project.
So, as in all other projects, I have created a minimal Makefile to avoid
that.

The commands:

- `make setup` → `pnpm install`
- `make serve` → `pnpm run docs:dev`
- `make format` → `pnpm run format`
- `make format-check` → `pnpm run format:check`

I did not add a help message or something like that as I find it easier
to have an easily grokable Makefile than a lot of comments etc in it.
asteiner-swisstopo added a commit that referenced this pull request Jul 29, 2026
When reviewing #170 I noticed
that one forgets the right commands to setup/serve/format the project.
So, as in all other projects, I have created a minimal Makefile to avoid
that.

The commands:

- `make setup` → `pnpm install`
- `make serve` → `pnpm run docs:dev`
- `make format` → `pnpm run format`
- `make format-check` → `pnpm run format:check`

I did not add a help message or something like that as I find it easier
to have an easily grokable Makefile than a lot of comments etc in it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants