Repository navigation
feat(design-system): stack overlays on z-index tier tokens [AR-108868] - #907
Open
mmurawski-dn wants to merge 3 commits into
Open
mmurawski-dn wants to merge 3 commits into
mmurawski-dn wants to merge 3 commits into
Conversation
👷 Deploy request for drivenets-design-system pending review.Visit the deploys page to approve it
|
…-108868-overlay-z-index-tokens # Conflicts: # packages/design-system/src/components/ds-table/__tests__/ds-table-columns.browser.test.tsx
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overriding a
--z-index-*tier token on:rootnow moves the design-system overlays with it, so apps can restack them without reading the compiled CSS. Part 2 of 3 of AR-108868; part 1 (#882) added the tokens.Changes
DsModal,DsDialog,DsDrawer,DsTooltipandDsChipGroupread their tier token.--z-index-dropdown, soDsSelect,DsDropdownMenu,DsDatePicker,DsTimePicker,DsDateInput,DsTreeand theDsTablemenus follow it, keeping their offsets (submenus, time picker, drag layer, row-action tooltip).Screenshots
At the defaults every stack looks the same before and after (byte-identical captures). The last row sets
--z-index-dropdown: 1100on:root: onmainit does nothing; with this PR the menu drops under the modal.Notes for reviewers
DsTablerow-action tooltips usemax(--z-index-tooltip, --z-index-dropdown + 2), so they follow the tooltip tier too.$dropdown-z-indexstays a number becausesrc/stylesships as raw styles; az-index($offset)function in_dropdown.scssreturns the token-based value.DsToast(Ark sets--z-indexper toast),DsMainMenu(1000, a layout surface) and the comment bubble/card menus pinned at 1300.