@@ -203,7 +203,7 @@ specific error being caught and why it cannot be prevented.
203
203
204
204
##### General
205
205
* Prefer writing out words instead of using abbreviations.
206
- * Prefer * exact* names over short names (within reason). E.g., ` labelPosition ` is better than
206
+ * Prefer * exact* names to short names (within reason). E.g., ` labelPosition ` is better than
207
207
` align ` because the former much more exactly communicates what the property means.
208
208
* Except for ` @Input ` properties, use ` is ` and ` has ` prefixes for boolean properties / methods.
209
209
@@ -275,7 +275,7 @@ The above code allows users to set `disabled` similar to how it can be set on na
275
275
#### Expose native inputs
276
276
Native inputs used in components should be exposed to developers through ` ng-content ` . This allows
277
277
developers to interact directly with the input and allows us to avoid providing custom
278
- implementations for all of the input's native behaviors.
278
+ implementations for all the input's native behaviors.
279
279
280
280
For example:
281
281
@@ -320,12 +320,12 @@ pre-rendering).
320
320
321
321
#### Be cautious with use of ` display: flex `
322
322
* The [ baseline calculation for flex elements] ( https://www.w3.org/TR/css-flexbox-1/#flex-baselines )
323
- is different than other display values, making it difficult to align flex elements with standard
323
+ is different from other display values, making it difficult to align flex elements with standard
324
324
elements like input and button.
325
325
* Component outermost elements are never flex (block or inline-block)
326
326
* Don't use ` display: flex ` on elements that will contain projected content.
327
327
328
- #### Use lowest specificity possible
328
+ #### Use the lowest specificity possible
329
329
Always prioritize lower specificity over other factors. Most style definitions should consist of a
330
330
single element or css selector plus necessary state modifiers. ** Avoid SCSS nesting for the sake of
331
331
code organization.** This will allow users to much more easily override styles.
@@ -413,7 +413,7 @@ When it is not super obvious, include a brief description of what a class repres
413
413
414
414
#### Prefer CSS classes to tag names and attributes for styling
415
415
Targeting tag names can cause conflicts with the MDC version of the component. For this reason, use
416
- CSS class names defined by us instead of tag names. We also prefer classes over attributes for
416
+ CSS class names defined by us instead of tag names. We also prefer classes to attributes for
417
417
consistency.
418
418
``` scss
419
419
/* * Do: */
0 commit comments