Skip to content

Commit 3e649a7

Browse files
authored
Merge pull request #548 from dxc-technology/component-button
Component button specs update
2 parents f5b0824 + 9f43b39 commit 3e649a7

19 files changed

+26
-21
lines changed
-39.2 KB
Binary file not shown.
7.33 KB
Binary file not shown.
230 Bytes
Binary file not shown.

guidelines/components/button/README.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ These values can be applied independently to each side of the component:
9999

100100
| Component token | Element | Token | Value |
101101
| :---------------------------------- | :-------------------------- | :----------------------- | :---------- |
102-
| `primaryHoverBackgroundColor` | Container fill:hover | `color-purple-800` | #4b1c7d |
103-
| `primaryActiveBackgroundColor` | Container fill:active | `color-purple-900` | #321353 |
102+
| `primaryHoverBackgroundColor` | Container fill:hover | `color-purple-800` | #4b1c7d |
103+
| `primaryActiveBackgroundColor` | Container fill:active | `color-purple-900` | #321353 |
104104
| `primaryDisabledBackgroundColor` | Container fill:disabled | `color-grey-100` | #f2f2f2 |
105105
| `primaryDisabledFontColor` | Label:disabled | `color-grey-500` | #999999 |
106-
| `secondaryFocusBorderColor` | Container border:focus | `color-blue-600` | #0095ff |
106+
| `secondaryFocusBorderColor` | Container border:focus | `color-blue-600` | #0095ff |
107107

108108
#### Border
109109

@@ -124,12 +124,15 @@ These values can be applied independently to each side of the component:
124124
| `primaryBorderRadius` | Label | `font-regular` | 400 |
125125

126126

127-
#### Padding
127+
#### Spacing
128+
129+
| Component token | Element | Core token | Value |
130+
| :----------------------------- | :--------------- | :---------------- | :-------------- |
131+
| `primaryPaddingLeft` | Container | `spacing-03` | 0.5rem / 8px |
132+
| `primaryPaddingRight` | Container | `spacing-03` | 0.5rem / 8px |
133+
| `primaryPaddingTop` | Container | `spacing-05` | 1rem / 16px |
134+
| `primaryPaddingBottom` | Container | `spacing-05` | 1rem / 16px |
128135

129-
| Component token | Element | Core token | Value |
130-
| :-------------------------- | :--------------- | :------------- | :---------------- |
131-
| `primaryPaddingTop` | Label | `spacing-04` | 0.75 rem / 12px |
132-
| `primaryPaddingBottom` | Label | `spacing-04` | 12px / 0.75 rem |
133136

134137
### Secondary
135138

@@ -172,12 +175,14 @@ These values can be applied independently to each side of the component:
172175
| `secondaryFontWeight` | Label | `font-regular` | 400 |
173176

174177

175-
#### Padding
178+
#### Spacing
176179

177-
| Component token | Element | Core token | Value |
178-
| :----------------------------- | :--------------- | :---------- | :----------------- |
179-
| `secondaryPaddingTop` | Label | `-` | 10px / 0.75 rem |
180-
| `secondaryPaddingBottom` | Label | `-` | 10px / 0.75 rem |
180+
| Component token | Element | Core token | Value |
181+
| :----------------------------- | :--------------- | :---------------- | :-------------- |
182+
| `secondaryPaddingLeft` | Container | `spacing-03` | 0.5rem / 8px |
183+
| `secondaryPaddingRight` | Container | `spacing-03` | 0.5rem / 8px |
184+
| `secondaryPaddingTop` | Container | `spacing-05` | 1rem / 16px |
185+
| `secondaryPaddingBottom` | Container | `spacing-05` | 1rem / 16px |
181186

182187

183188
### Text
@@ -199,7 +204,7 @@ These values can be applied independently to each side of the component:
199204
| `textActiveBackgroundColor` | Container fill:active | `color-purple-200` | #e5d5f6 |
200205
| `textDisabledBackgroundColor` | Container fill:disabled | `color-grey-100` | #f2f2f2 |
201206
| `textDisabledFontColor` | Label:disabled | `color-grey-500` | #999999 |
202-
| `secondaryFocusBorderColor` | Container border:focus | `color-blue-600` | #0095ff |
207+
| `secondaryFocusBorderColor` | Container border:focus | `color-blue-600` | #0095ff |
203208

204209

205210
#### Border
@@ -221,14 +226,14 @@ These values can be applied independently to each side of the component:
221226
| `textFontWeight` | Label | `font-regular` | 400 |
222227

223228

224-
#### Padding
225-
226-
| Component token | Element | Core token | Value |
227-
| :--------------------------- | :--------------- | :------------------- | :---------------- |
228-
| `textPaddingTop` | Label | `spacing-04` | 12px / 0.75 rem |
229-
| `textPaddingBottom` | Label | `spacing-04` | 12px / 0.75 rem |
230-
229+
#### Spacing
231230

231+
| Component token | Element | Core token | Value |
232+
| :-------------------------- | :--------------- | :---------------- | :-------------- |
233+
| `textPaddingLeft` | Container | `spacing-03` | 0.5rem / 8px |
234+
| `textPaddingRight` | Container | `spacing-03` | 0.5rem / 8px |
235+
| `textPaddingTop` | Container | `spacing-05` | 1rem / 16px |
236+
| `textPaddingBottom` | Container | `spacing-05` | 1rem / 16px |
232237

233238

234239
## Icon Usage
117 Bytes
Loading
-8.98 KB
Loading
-927 Bytes
Loading
-78 Bytes
Loading
-186 Bytes
Loading
-3.06 KB
Binary file not shown.

0 commit comments

Comments
 (0)