@apolitical/component-library 9.0.0-beta.1 → 9.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,19 @@ $font-size-s: 0.75rem;
5
5
  $font-size: 0.875rem;
6
6
  $font-size-md: 1rem;
7
7
 
8
+ // Screen reader only utility class
9
+ .u-sr-only {
10
+ position: absolute;
11
+ width: 1px;
12
+ height: 1px;
13
+ padding: 0;
14
+ margin: -1px;
15
+ overflow: hidden;
16
+ clip: rect(0, 0, 0, 0);
17
+ white-space: nowrap;
18
+ border: 0;
19
+ }
20
+
8
21
  // form elements
9
22
  .u-text-align-left {
10
23
  text-align: left;
@@ -213,6 +226,27 @@ $font-size-md: 1rem;
213
226
  align-content: space-between;
214
227
  }
215
228
 
229
+ // align-self
230
+ .u-self-center {
231
+ align-self: center;
232
+ }
233
+
234
+ .u-self-start {
235
+ align-self: start;
236
+ }
237
+
238
+ .u-self-end {
239
+ align-self: end;
240
+ }
241
+
242
+ .u-self-stretch {
243
+ align-self: stretch;
244
+ }
245
+
246
+ .u-self-baseline {
247
+ align-self: baseline;
248
+ }
249
+
216
250
  // display
217
251
  .u-block {
218
252
  display: block;
@@ -311,6 +345,10 @@ $font-size-md: 1rem;
311
345
  margin-top: 2.5rem; /* 40px */
312
346
  }
313
347
 
348
+ .u-mt-12 {
349
+ margin-top: 3rem; /* 64px */
350
+ }
351
+
314
352
  .u-mr-auto {
315
353
  margin-right: auto;
316
354
  }
@@ -26,7 +26,7 @@ export type MemberDetailsProps = {
26
26
  /** The user's badges */
27
27
  badges?: IBadgesObject;
28
28
  };
29
- export type MemberProps = 'apolitical' | 'community' | 'deleted' | MemberDetailsProps;
29
+ export type MemberProps = 'apolitical' | 'community' | 'deleted' | 'anonymous' | MemberDetailsProps;
30
30
  export declare enum ConnectionStatusType {
31
31
  Accepted = "accepted",
32
32
  Cancelled = "cancelled",