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/design-system-website/foundations/Responsiveness.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## Overview
1
+
## Mixins
2
2
3
3
This system remains mostly unopinionated on responsive tools, but the `sass-variables` package contains a few mixins to help you customize your own styles based on the viewport width:
4
4
@@ -23,7 +23,7 @@ This system remains mostly unopinionated on responsive tools, but the `sass-vari
23
23
}
24
24
```
25
25
26
-
### Breakpoint widths
26
+
## Breakpoints
27
27
28
28
The mixins respond to three sizes by default:
29
29
@@ -52,7 +52,7 @@ $breakpoints: (
52
52
}
53
53
```
54
54
55
-
###Which mixin should I use?
55
+
## Which mixin should I use?
56
56
57
57
The conventional wisdom of "mobile-first" design encourages designing at the smallest widths first, then progressively enhancing the design for larger sizes. This tends to improve the responsiveness of the design overall, since it forces a focus on multiple sizes from the beginning.
Copy file name to clipboardExpand all lines: packages/react-components/source/react/library/alert/Alert.md
+20-15
Original file line number
Diff line number
Diff line change
@@ -139,19 +139,19 @@ class CustomError extends Error {
139
139
Errors of any valid type will be displayed automatically:
140
140
141
141
```jsx
142
-
143
142
constextendedError= {
144
-
message:'There\'s no reason to become alarmed',
143
+
message:"There's no reason to become alarmed",
145
144
causes: [
146
145
{
147
-
message:'and we hope you\'ll enjoy the rest of your flight.',
146
+
message:"and we hope you'll enjoy the rest of your flight.",
148
147
causes: [
149
148
{
150
-
message:'By the way, is there anyone on board who knows how to fly a plane?'
151
-
}
152
-
]
149
+
message:
150
+
'By the way, is there anyone on board who knows how to fly a plane?',
151
+
},
152
+
],
153
153
},
154
-
]
154
+
],
155
155
};
156
156
157
157
<div>
@@ -162,31 +162,36 @@ const extendedError = {
162
162
<Alert.Error error="The autopilot is deflating!"/>
163
163
</Alert>
164
164
<Alert type="info" style={{ marginBottom:5 }}>
165
-
<Alert.Error error={newError('Looks like I picked the wrong week to quit sniffing glue.')} />
165
+
<Alert.Error
166
+
error={
167
+
newError('Looks like I picked the wrong week to quit sniffing glue.')
168
+
}
169
+
/>
166
170
</Alert>
167
-
</div>
171
+
</div>;
168
172
```
169
173
170
174
#### Cause sensitivity:
171
175
172
176
A primary usecase for this meta-component is to automatically display API-generated errors. In this scenario it is likely that some errors returned as causes will be overly technical, and therefor not fit for display to end-users. To solve for this case, the Error alert will hide `causes` with a numerical `sensitivity` index that is greater than zero:
173
177
174
178
```jsx
175
-
176
179
constextendedError= {
177
180
message:'Yo, your stuff is whack!',
178
181
causes: [
179
182
{
180
-
message:'This is the reason for whackness we will display to the user, but there is more!',
183
+
message:
184
+
'This is the reason for whackness we will display to the user, but there is more!',
181
185
},
182
186
{
183
-
message:'Jargony jargon jargon this is the technical reason why it is whack',
187
+
message:
188
+
'Jargony jargon jargon this is the technical reason why it is whack',
Code should always reference the Sass color variable (instead of directly referencing hex values). The variable definitions are located in [_palettes.scss](https://github.com/puppetlabs/design-system/blob/master/packages/sass-variables/_palettes.scss) in the `sass-variables` package, e.g. `$puppet-black`, `$puppet-n950`, etc.
28
-
29
-
27
+
Code should always reference the Sass color variable (instead of directly referencing hex values). The variable definitions are located in [\_palettes.scss](https://github.com/puppetlabs/design-system/blob/master/packages/sass-variables/_palettes.scss) in the `sass-variables` package, e.g. `$puppet-black`, `$puppet-n950`, etc.
Copy file name to clipboardExpand all lines: packages/react-components/source/react/library/link/Link.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,19 @@ Consider these 3 states for links: hover, focused and pressed (similar to [Butto
18
18
Primary inline links are blue (B500), to differentiate from the text around them. There are two sizes for inline links: The default size, and a small size.
Secondary links use the color of the text around them. In order to meet WCAG AA 2.0 standards, the initial state must be underlined. Hover, focus, and pressed states are the same as blue inline links.
Copy file name to clipboardExpand all lines: packages/react-components/source/react/library/table/Table.md
+20-3
Original file line number
Diff line number
Diff line change
@@ -193,16 +193,33 @@ A unique key can also be provided via a function:
193
193
Use the `hideOverflow` flag if you want to hide long cell content with an ellipses. The flag only affects the column it is turned on for.
194
194
195
195
<!-- prettier-ignore-start -->
196
+
196
197
```jsx
197
198
constdata= [
198
-
{ id:1, type:'Lorem ipsum', passage:'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', characters:123 },
199
+
{
200
+
id:1,
201
+
type:'Lorem ipsum',
202
+
passage:
203
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
204
+
characters:123,
205
+
},
199
206
{ id:2, type:'Cicero', passage:'Sed ut perspiciatis', characters:19 },
200
-
{ id:3, type:'1914', passage:'But I must explain to you how all this mistaken idea', characters:52 },
207
+
{
208
+
id:3,
209
+
type:'1914',
210
+
passage:'But I must explain to you how all this mistaken idea',
0 commit comments