You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-input/Spec.md
+120Lines changed: 120 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,3 +61,123 @@ Base accessibility information is included in the design document. After the spe
61
61
- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them
62
62
- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation)
63
63
- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases)
64
+
65
+
## Styling implementation notes
66
+
67
+
Input has multiple size and appearance variants. These tables were created based on the design spec to assist with initial implementation and help ensure everything is handled. (They're not exactly part of the input spec, but this seemed like a reasonable place to put them.)
68
+
69
+
General abbreviations used:
70
+
71
+
- " = inherit from left
72
+
- ^ = inherit from above
73
+
- ^^ = inherit from 2 lines above
74
+
75
+
## Sizes
76
+
77
+
- padding and gap values are from (theoretical) `spacing.horizontal` unless otherwise specified
78
+
- bookend-related sizes are from separate bookends page (everything except L/R padding and spacing within inherits from default)
79
+
- interpretation:
80
+
- "spacing between icon before and content"/"spacing between content and icon after 1" => "spacing start/end to content"
81
+
- "spacing between icon after 1 and icon after 2" => "spacing within insideEnd" because we're not going to have two icon slots
82
+
- bookend "spacing between content and icon" => "spacing within bookend"
0 commit comments