fix: [Inputs] normalize z-index across all inputs (ENG-46735) - #783
Merged
Conversation
Audit every explicit z-index across the inputs family and replace magic
numbers with three semantic tokens declared in @aziontech/theme:
--z-input-field (1) field/interactive foreground above the input's
own icons, adornments and background surface
--z-input-popup (10) inline (non-teleported) input-anchored overlay
--z-input-overlay (1100) teleported overlay that must clear application
chrome (dialog=1000, dialog-content/drawer=1001)
Fixes the transversal stacking bug where the teleported `select` and
`multi-select` listboxes (`z-50`) rendered behind an open Dialog or
Drawer overlay (`z-[1001]`). All input-family components now share one
stack ordering: field < inline popup < teleported overlay > modal chrome.
Components touched:
- input-text, input-password, input-number, chip, theme-switcher
(field foreground: z-[1] -> z-[var(--z-input-field)])
- select-content, multi-select-content
(teleported panel: z-50 -> z-[var(--z-input-overlay)])
Tokens are declared in packages/theme/src/tokens/semantic/z-indices.data.js
and emitted as CSS custom properties by build-tokens.mjs alongside the
existing spacing/container/text semantic tokens.
Refs: ENG-46735
14 tasks
isaquebock
marked this pull request as ready for review
July 23, 2026 17:33
isaquebock
marked this pull request as draft
July 23, 2026 17:34
isaquebock
marked this pull request as ready for review
July 23, 2026 17:49
robsongajunior
approved these changes
Jul 23, 2026
HerbertJulio
approved these changes
Jul 23, 2026
Contributor
|
🎉 This PR is included in version 4.2.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 4.2.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.
Summary
Fix para ENG-46735 — auditoria transversal de z-index em todos os inputs.
Novos tokens em
packages/theme/src/tokens/semantic/z-indices.data.js:--z-input-field1--z-input-popup10--z-input-overlay11001000) e Dialog-content/Drawer (1001)Componentes migrados (raw
z-[1]/z-50→ tokens semânticos):input-text,input-password,input-number(×5),chip,theme-switcher,select-content,multi-select-content.How to test (mapeado 1:1 com ENG-46735)
Problema Jira: "Revisar o z-index de todos os inputs. Está gerando problemas de sobreposição/empilhamento (relacionado, mas mais amplo que o caso específico de Select em Drawer/Dialog)."
Verificar os tokens
grep 'z-input' packages/theme/dist/v4/globals.css→ 3 tokens presentes.z-[1]/z-50raw.Regressão de empilhamento — cada input isoladamente
O caso que motivou o ticket
<Select>dentro de um<Dialog>ou<Drawer>→ abrir o Select → opções renderizam acima do overlay.<MultiSelect>.Tests
168/168 pass nos 7 componentes modificados. Assertion de stacking real vive no Storybook (browser mode do Vitest não carrega
@aziontech/theme/globals.csspor design).Downstream
Desbloqueia ENG-46731 no PR #782 (Select refinements).