ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

Create size variants for input components

Open DBD324 opened this issue 2 years ago • 2 comments

Summary

Most components have three size options: medium, small and large. Our input components only currently have default and small versions. Review all input components and provide designs for missing sizes.

💬 Description

Components should aim to use the following vertical sizings when they occupy a single line: Medium: 40px Small: 32px Large: 48px

Review:

  • Text fields
  • Selects
  • Checkboxes
  • Radio buttons
  • Date inputs
  • Buttons
  • Breadcrumb
  • Chips
  • Status tags
  • Link
  • Pagination
  • Search bar
  • Skeleton
  • Switch
  • Tabs?

Not all components will require changes, but need to check that they are all consistent with one another.

💰 Use value

The purpose of size variants is to control the vertical size of components and allow different information densities to be achieved. By keeping sizing consistent across components, it makes it easier to layout components following the vertical rhythm guidance.

Additional info

Tell us anything else useful to help us understand your suggestion.

DBD324 avatar Jul 12 '23 09:07 DBD324

Search "Missing properties" in closed tickets to see any linked

MI6-255 avatar Jul 30 '24 10:07 MI6-255

Some of the input components need more variants

GCHQ-Developer-112 avatar Nov 13 '24 09:11 GCHQ-Developer-112

The following have no size variants;

  • Breadcrumb
  • Card vertical
  • Link
  • Pagination
  • Skeleton
  • Tabs

The following components have 2 sizes;

  • data list
  • radio button
  • text field
  • table of contents

Correct - no change needed to these... The following components have 3 sizes; small/medium/large

  • button
  • card horizontal
  • checkbox
  • chip
  • date input
  • date picker
  • drawer
  • search bar
  • select
  • status tags
  • switch
  • time input
  • time picker
  • toggle button
  • tree view

mi6-577 avatar Sep 12 '25 08:09 mi6-577