Gap
Spazio
Lo spazio è lo spazio che un contenitore mette tra i suoi figli Flexbox o Grid. La stessa regola si applica a ogni coppia.
Un altro esempio
Una barra degli strumenti usa un unico valore per gli spazi. Quando si aggiunge un pulsante, la spaziatura rimane uniforme.
Parti principali
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
Usalo quando
Usa gap quando il layout, non ciascun elemento figlio, dovrebbe controllare lo spazio tra elementi fratelli.
Non usarlo quando
Non aggiungere mai margini a ciascun elemento figlio quando il gap mostra la relazione in modo più chiaro.
Nome usato nel codice
gap Prima di spedire
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome: Complete the task with Spazio (Gap). User context: Una barra degli strumenti usa un unico valore per gli spazi. Quando si aggiunge un pulsante, la spaziatura rimane uniforme. Design concept to apply: Spazio (Gap). Why it fits: Usa gap quando il layout, non ciascun elemento figlio, dovrebbe controllare lo spazio tra elementi fratelli. Do not use it when: Non aggiungere mai margini a ciascun elemento figlio quando il gap mostra la relazione in modo più chiaro. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary): Un documento formale può ancora essere una bozza, un release candidate o la versione finale. Controlla il suo stato e il supporto per browser o piattaforma. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Controlla questa richiesta
Review how Spazio (Gap) is used now. Definition: Lo spazio è lo spazio che un contenitore mette tra i suoi figli Flexbox o Grid. La stessa regola si applica a ogni coppia. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.