Repository navigation
web/elements: add scrollbar helpers and apply to Interface - #21511
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21511 +/- ##
==========================================
- Coverage 92.27% 92.26% -0.01%
==========================================
Files 1032 1032
Lines 59658 59658
Branches 2537 2537
==========================================
- Hits 55047 55046 -1
- Misses 4546 4547 +1
Partials 65 65
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
kensternberg-authentik
left a comment
There was a problem hiding this comment.
That this is even needed makes me go ick, but ... it looks good.
Introduce `elements/utils/scrollbars.ts` with `measureScrollbarWidth` and `applyScrollbarClass`, and call it from `Interface` so the root document picks up `ak-m-visible-scrollbars` / `ak-m-overlay-scrollbars` depending on the platform. Add an `ak-m-thin-scrollbar` selector to `base/scrollbars.css` so ad-hoc containers can opt in. Drop the unused `elements/utils/isVisible.ts`. Co-Authored-By: Claude Opus 4.6 <[email protected]>
81f62d6 to
ad3b332
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-ad3b3327338a63bc2d4ef86c33c7ceae58bccf48
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-ad3b3327338a63bc2d4ef86c33c7ceae58bccf48Afterwards, run the upgrade commands from the latest release notes. |
* main: web: build system had some legacy stuff that I found confusing while working on the CSS ordering (#20698) core: bump ruff from 0.15.9 to 0.15.10 (#21559) core: bump types-jwcrypto from 1.5.0.20260408 to 1.5.7.20260409 (#21561) core: bump lxml from 6.0.3 to 6.0.4 (#21560) ci: bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 (#21566) ci: bump docker/build-push-action from 7.0.0 to 7.1.0 (#21563) ci: bump actions/upload-artifact from 7.0.0 to 7.0.1 (#21565) core: bump library/golang from `da39430` to `c0074c7` in /lifecycle/container (#21567) ci: bump taiki-e/install-action from 2.75.1 to 2.75.5 in /.github/actions/setup (#21569) web: bump mermaid from 11.13.0 to 11.14.0 in /web (#21527) core, web: update translations (#21552) web: bump basic-ftp from 5.2.1 to 5.2.2 in /web (#21543) web: User Wizard, Modal Revisions Merge Branch (#21336) web/elements: default @listen target to host element and add split-button Dropdown (#21512) ci: parallel tests (#21515) website/docs: add another sentence to First Steps about restricting access to apps (#21517) web/elements: add scrollbar helpers and apply to Interface (#21511) web/elements: add viewport helpers and extend intersection observer (#21508)
…ik#21511) Introduce `elements/utils/scrollbars.ts` with `measureScrollbarWidth` and `applyScrollbarClass`, and call it from `Interface` so the root document picks up `ak-m-visible-scrollbars` / `ak-m-overlay-scrollbars` depending on the platform. Add an `ak-m-thin-scrollbar` selector to `base/scrollbars.css` so ad-hoc containers can opt in. Drop the unused `elements/utils/isVisible.ts`. Co-authored-by: Claude Opus 4.6 <[email protected]>
…ik#21511) Introduce `elements/utils/scrollbars.ts` with `measureScrollbarWidth` and `applyScrollbarClass`, and call it from `Interface` so the root document picks up `ak-m-visible-scrollbars` / `ak-m-overlay-scrollbars` depending on the platform. Add an `ak-m-thin-scrollbar` selector to `base/scrollbars.css` so ad-hoc containers can opt in. Drop the unused `elements/utils/isVisible.ts`. Co-authored-by: Claude Opus 4.6 <[email protected]>
Summary
elements/utils/scrollbars.tswithmeasureScrollbarWidthandapplyScrollbarClass— setsak-m-visible-scrollbarsorak-m-overlay-scrollbarson the document root depending on platformapplyScrollbarClassfrom theInterfaceconstructor so all three UI apps pick it up automaticallyak-m-thin-scrollbarselector tobase/scrollbars.cssfor opt-in thin scrollbar stylingelements/utils/isVisible.tsTest plan
ak-m-overlay-scrollbarsis applied on macOS (overlay scrollbars) andak-m-visible-scrollbarson Linux/Windows (visible scrollbars)Split from web/a11y: Modal revisions, behavior fixes #21206 to ease review.