Skip to content

Commit

Permalink
docs(data-table-v2): add ARCHITECTURE.md file for class names (carbon…
Browse files Browse the repository at this point in the history
…-design-system#2162)

* docs(data-table): add selector docs

* docs(data-table-v2): move classes to ARCHITECTURE.md file

* chore(data-table-v2): move classes from README.md

* docs(data-table-v2): add migrate-to-10.x.md
  • Loading branch information
joshblack authored and asudoh committed Mar 21, 2019
1 parent e638718 commit 78ce387
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/components/data-table-v2/ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Data Table

## Classes

- Core
- `bx--data-table-v2-container`
- `bx--data-table-v2-header`
- `bx--data-table-v2`
- `bx--data-table-v2--zebra`
- `bx--data-table-v2--no-border`
- `bx--data-table-v2--static`
- `bx--data-table-v2--selected`
- Sizing (smallest to largest)
- `bx--data-table-v2--compact`
- `bx--data-table-v2--short`
- `bx--data-table-v2--tall`
- Action
- `bx--table-toolbar` (child of `bx--data-table-v2-container`)
- `bx--batch-actions`
- `bx--batch-actions--active`
- `bx--batch-summary`
- `bx--batch-summary__para`
- `bx--batch-summary__cancel`
- `bx--toolbar-search-container`
- `bx--toolbar-content`
- `bx--toolbar-action`
- `bx--toolbar-action__icon`
- `bx--action-list`
- `bx--action-icons`
- Expandable
- `bx--parent-row-v2`
- `bx--expandable-row-v2`
- `bx--expandable-row--hidden-v2`
- `bx--expandable-row--hover-v2`
- `bx--table-expand-v2`
- `bx--table-expand-v2__button`
- `bx--table-expand-v2__svg`
- Sort
- `bx--table-sort-v2`
- `bx--table-sort-v2--ascending`
- `bx--table-sort-v2--active`
- `bx--table-sort-v2__icon`
18 changes: 18 additions & 0 deletions src/components/data-table-v2/migrate-to-10.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Data Table

### Selectors

| Category | v9 | v10 |
| --------------- | ------------------------------- | --------------------- |
| Table container | `.bx--data-table-v2-container` | No change |
| Table header | `.bx--data-table-v2-header` | Now a container class |
| Data Table | | |
| | `.bx--data-table-v2` | No change |
| | `.bx--data-table-v2--no-border` | TODO |
| | `.bx--data-table-v2--static` | TODO |
| | `.bx--data-table-v2--selected` | TODO |
| | `.bx--data-table-v2--zebra` | No change |
| Sizing | | |
| | `.bx--data-table-v2--compact` | No change |
| | `.bx--data-table-v2--short` | No change |
| | `.bx--data-table-v2--tall` | No change |

0 comments on commit 78ce387

Please sign in to comment.