Skip to content

Commit

Permalink
Fix markdown typo in CSS style guide. (#9408)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Dec 7, 2016
1 parent 050fc87 commit cebf834
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions style_guides/css_style_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ This kind of code makes the selector name really difficult to grep for:
.chart {
// styles

&-content {
&Content {
// styles

&-title {
&Title {
// styles
}
}
Expand All @@ -61,11 +61,11 @@ This is better:
// styles
}

.chart-content {
.chartContent {
// styles
}

.chart-content-title {
.chartContentTitle {
// styles
}
```
Expand Down Expand Up @@ -95,6 +95,7 @@ This is better:
.specialMenu__item {
// styles
}
```

## Naming convention

Expand Down Expand Up @@ -234,19 +235,19 @@ pretty hairy. Consider a table component:
// ======================== Bad! ========================
// These styles are complex and the multiple double-underscores increases noise
// without providing much useful information.
.kbTable {
.kuiTable {
/* ... */
}

.kbTable__body {
.kuiTable__body {
/* ... */
}

.kbTable__body__row {
.kuiTable__body__row {
/* ... */
}

.kbTable__body__row__cell {
.kuiTable__body__row__cell {
/* ... */
}
```
Expand All @@ -257,25 +258,25 @@ indicates their relationship, by incorporating the name of the root base class.

```less
// kbTable.less
.kbTable {
.kuiTable {
/* ... */
}
```

```less
// kbTableBody.less
.kbTableBody {
.kuiTableBody {
/* ... */
}
```

```less
// kbTableRow.less
.kbTableRow {
.kuiTableRow {
/* ... */
}

.kbTableRow__cell {
.kuiTableRow__cell {
/* ... */
}
```
Expand Down

0 comments on commit cebf834

Please sign in to comment.