skip to content

In a design system, why should a team needing a denser data-usage table apply the compact density mode rather than override padding locally?

level: juniorimportance: should knowfreq 40%

answer

  1. one switch, many components
  2. floors someone already checked
  3. neighbours stay aligned
  4. upgrades keep working
  5. a missing step is a system gap

basics

~20 s

The compact mode tightens padding, rows and control heights across every component together, keeps the accessibility floors the system already verified, and follows future system fixes. A local override drifts from its neighbours, skips those checks and hides the gap from the system team.

solid answer

~40 s

A density mode is a coordinated set of sizing values the design system defines once, so applying compact tightens the table, its filter field and its pagination buttons together and keeps them aligned. The system team designed compact so targets still meet WCAG 2.2 criterion 2.5.8 at level AA, text stays legible and focus rings are not clipped; a local override inherits none of that. The mode also picks up the system's later fixes on upgrade, while an override freezes old numbers and often breaks when the component changes. If compact still does not fit, that is feedback for the system team, not a reason to fork. And if the table is hard to scan because it has too many columns, density is the wrong tool: rework the content.

go deeper

for a junior

Remember the habit: reach for the system's density mode before touching padding, and report a gap instead of patching it.

for a middle

Explain what the mode actually coordinates, padding, row and control height across components, and which floors come with it.

for a senior

Describe how local overrides turn into drift across teams, and how you would spot and fold them back into a system-supported density step.

for a principal

Treat recurring overrides as demand data: decide whether the system needs another density step or clearer guidance on where compact belongs.

## The situation A product team working on a telecom self-service app wants the monthly data-usage table to show more rows per screen for customers who manage many lines. Two routes exist: switch that surface to the design system's **compact density mode**, or open the component and override its padding and row height locally. The first is almost always right, and the reasons are what the question tests. ## What the compact mode gives you A **density mode** is a coordinated set of sizing values (padding, gaps, row height, control height) that the design system defines once and swaps as a unit. Choosing it means: - **Consistency across components.** The table's rows, the filter field above it and the pagination buttons below tighten together, so they still share one rhythm. - **Floors already checked.** The system team designed compact so each pointer target still meets WCAG 2.2 criterion **2.5.8 Target Size (Minimum)**, level AA (24 by 24 CSS pixels or enough spacing), text stays legible and focus indicators are not clipped. A local override inherits none of that verification. - **Fixes on upgrade.** When the system retunes compact, say a new row height or a fix for a clipped focus ring, every surface using the mode gets it with the next system upgrade. A local override freezes the old numbers. - **One vocabulary.** Designers, engineers and reviewers can say the usage table is compact and all mean the same values, on the web and on native mobile. ## What a local override does instead | Concern | Compact density mode | Local padding override | |---|---|---| | Consistency | whole surface tightens together | one component differs from its neighbours | | Accessibility floors | designed and tested by the system | unknown until someone audits it | | System upgrades | receives fixes | may break or silently lose the override | | Review cost | nothing new to review | a one-off every reviewer must reason about | | Signal to the system team | visible as mode usage | invisible, so the gap is never fixed | Overrides are also where **drift** starts: the next team copies the override, and a year later the product has three compact tables with three row heights and no one knows which is correct. ## How to apply it correctly 1. Find the system's documented way to set density for a screen or region, and apply compact to the table's surface as a whole rather than cell by cell. 2. Read the guidance on where compact is intended: typically data-heavy views used repeatedly by experienced users, less often first-run or one-off flows. 3. Review the result on the smallest supported screen and with an enlarged text size, because density and user text size interact. 4. If compact still does not fit, raise it with the system team. A missing density step, or a component that ignores the mode, is a system gap that other teams probably share. ## When compact is not the answer Density only changes spacing. If the table is hard to scan because it has twelve columns, denser rows make it worse, not better. Sometimes the right fix is to drop or collapse columns, add a per-line summary, or let customers filter to one line. A strong answer notices that density is one tool, not the goal. ## Why interviewers ask this The question checks whether a candidate uses a design system as a system: preferring its modes, variants and documented options over local styling, and understanding that the system's value is that its decisions, including its accessibility decisions, travel with its parts. It also checks the instinct to report a gap upstream rather than silently patch around it, which is how a system improves for every consuming team.

  • The system's compact mode is still not dense enough for the usage table. What do you do?
    First check whether density is the real problem: too many columns or too much repeated text often is. If it is, raise it with the system team with the concrete case, since other teams likely need the same step. Any temporary local change should be documented and tracked so it is removed when the system catches up, not copied.
  • Does applying compact to the table mean the whole app must be compact?
    Not necessarily. Many systems let density be set for a screen or region, so a data-heavy table can be compact while the rest of the flow stays comfortable. Follow the system's documented scope for density, and keep one density per surface so a compact table does not sit awkwardly beside comfortable controls that belong to it.

Choosing the compact mode is like asking a printer for the pocket edition of a book: margins, leading and page size change together by a tested recipe. Trimming your own copy's margins with scissors gets a smaller book too, but the next edition will not match it.

saying these in an interview costs you the question

  • Overriding padding locally is the same as using the compact mode.
  • Density modes are only for design files, not for coded screens.
  • Padding changes cannot affect target size or accessibility.
  • If compact is not dense enough, fork the component and move on.
  • A denser table always fixes a table that is hard to scan.