Skip to content

Commit be65ac5

Browse files
authored
docs: codig standard docs updated (#27271)
1 parent 227a741 commit be65ac5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CODING_STANDARDS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ specific error being caught and why it cannot be prevented.
203203

204204
##### General
205205
* 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
207207
`align` because the former much more exactly communicates what the property means.
208208
* Except for `@Input` properties, use `is` and `has` prefixes for boolean properties / methods.
209209

@@ -275,7 +275,7 @@ The above code allows users to set `disabled` similar to how it can be set on na
275275
#### Expose native inputs
276276
Native inputs used in components should be exposed to developers through `ng-content`. This allows
277277
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.
279279

280280
For example:
281281

@@ -320,12 +320,12 @@ pre-rendering).
320320

321321
#### Be cautious with use of `display: flex`
322322
* 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
324324
elements like input and button.
325325
* Component outermost elements are never flex (block or inline-block)
326326
* Don't use `display: flex` on elements that will contain projected content.
327327

328-
#### Use lowest specificity possible
328+
#### Use the lowest specificity possible
329329
Always prioritize lower specificity over other factors. Most style definitions should consist of a
330330
single element or css selector plus necessary state modifiers. **Avoid SCSS nesting for the sake of
331331
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
413413

414414
#### Prefer CSS classes to tag names and attributes for styling
415415
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
417417
consistency.
418418
```scss
419419
/** Do: */

0 commit comments

Comments
 (0)