Skip to content

Commit 49130ab

Browse files
committed
add table prefix
1 parent fef6b86 commit 49130ab

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

BREAKING_CHANGES/v3.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Of course you can still use Bootstrap together with @siemens/ix, but you need to
144144

145145
### HTML table classes `.table` and `.table-striped` are not based on Bootstrap anymore
146146

147-
The classes `.table` and `.table-striped` can still be used in order to style HTML tables.
147+
The classes `.table` gets `.ix-table` and `.table-striped` gets `.ix-table-striped` and can still be used in order to style HTML tables.
148148
Please note that they are not based on Bootstrap anymore.
149149
If your tables rely on additional Bootstrap functionality (e.g. hoverable rows), you have to install Bootstrap on your own.
150150

@@ -161,15 +161,13 @@ To ensure that your styles are not broken after update to v3 you have to provide
161161
e.g
162162

163163
```html
164-
<input type="text" />
165-
<input type="text" class="form-control" />
164+
<input type="text" /> <input type="text" class="form-control" />
166165
```
167166

168167
to
169168

170169
```html
171-
<input type="text" class="ix-form-control" />
172-
<input type="text" class="ix-form-control" />
170+
<input type="text" class="ix-form-control" /> <input type="text" class="ix-form-control" />
173171
```
174172

175173
## Component Updates

packages/core/scss/components/_table.scss

+16-14
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
--bs-table-hover-bg: var(--theme-table-data-row-alt--background--hover);
2626
}
2727

28-
.table {
28+
.ix-table {
2929
box-sizing: border-box;
3030
border-spacing: 0px;
3131
width: 100%;
@@ -41,35 +41,37 @@
4141
@include bs-legacy-support;
4242
}
4343

44-
.table-striped > tbody > tr:nth-of-type(odd) > * {
44+
.ix-table-striped > tbody > tr:nth-of-type(odd) > * {
4545
--ix-table-background: var(--theme-table-data-row-alt--background);
4646
}
4747

48-
.table thead {
48+
.ix-table thead {
4949
background-color: var(--theme-table-header-row--background);
5050
}
5151

52-
.table > thead {
52+
.ix-table > thead {
5353
vertical-align: bottom;
5454
}
5555

56-
.table > :not(caption) > * > * {
56+
.ix-table > :not(caption) > * > * {
5757
padding: 0.5rem 0.5rem;
5858
background-color: var(--ix-table-background);
5959
border-bottom-width: 1px;
6060
box-shadow: inset 0 0 0 9999px transparent;
6161
}
6262

63-
.table th,
64-
.table td {
63+
.ix-table th,
64+
.ix-table td {
6565
border-bottom-color: var(--theme-table-data-row--border-color);
6666
}
6767

68-
thead,
69-
tbody,
70-
tfoot,
71-
tr,
72-
td,
73-
th {
74-
text-align: left;
68+
.ix-table {
69+
thead,
70+
tbody,
71+
tfoot,
72+
tr,
73+
td,
74+
th {
75+
text-align: left;
76+
}
7577
}

packages/core/src/tests/3rd-party/bootstrap/html-elements/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<h2 class="section">Just a ix component</h2>
3333
<ix-button>Button</ix-button>
3434
<h2 class="section">Table</h2>
35-
<table class="table">
35+
<table class="ix-table">
3636
<thead>
3737
<tr>
3838
<th scope="col">#</th>
@@ -63,7 +63,7 @@ <h2 class="section">Table</h2>
6363
</table>
6464

6565
<h2 class="section">Table striped</h2>
66-
<table class="table table-striped">
66+
<table class="ix-table table-striped">
6767
<thead>
6868
<tr>
6969
<th scope="col">#</th>

packages/core/src/tests/html-table/basic/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<title>Stencil Component Starter</title>
1616
</head>
1717
<body>
18-
<table class="table">
18+
<table class="ix-table">
1919
<thead>
2020
<tr>
2121
<th scope="col">#</th>

packages/core/src/tests/html-table/striped/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<title>Stencil Component Starter</title>
1616
</head>
1717
<body>
18-
<table class="table table-striped">
18+
<table class="ix-table table-striped">
1919
<thead>
2020
<tr>
2121
<th scope="col">#</th>

0 commit comments

Comments
 (0)