Skip to content

Commit 49b49df

Browse files
committed
LITE-30099: Updated components and stories affected by the button redesign
1 parent 0166404 commit 49b49df

File tree

3 files changed

+28
-47
lines changed

3 files changed

+28
-47
lines changed

components/src/stories/Menu.stories.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ export const Component = {
1313
template: `
1414
<ui-menu v-bind="args">
1515
<ui-button
16-
slot="trigger"
17-
text="open menu"
16+
slot="trigger"
17+
iconRight="googleArrowDropDownBaseline"
18+
label="open menu"
19+
mode="flat"
20+
size="small"
1821
/>
1922
<div style="padding:8px 16px; border:1px solid black;" slot="content">
2023
<p>Lorem ipsum dolor sit amet</p>

components/src/widgets/complexTable/widget.vue

Lines changed: 22 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
<ui-menu :closeOnClickInside="false">
33
<ui-button
44
slot="trigger"
5-
:disabled="filterableHeaders.length === 0"
6-
backgroundColor="#fff"
7-
color="#161616"
8-
height="26px"
9-
width="80px"
105
class="filter-trigger"
11-
>
12-
<ui-icon
13-
iconName="googleFilterListBaseline"
14-
size="14"
15-
color="#757575"
16-
/>
17-
<span>Filter</span>
18-
</ui-button>
6+
:disabled="filterableHeaders.length === 0"
7+
icon="googleFilterListBaseline"
8+
label="filter"
9+
mode="flat"
10+
size="small"
11+
/>
1912

2013
<div
2114
slot="content"
@@ -30,13 +23,10 @@
3023
<ui-textfield @input="(val) => filterInput(header.value, val)" />
3124
</div>
3225
<ui-button
33-
height="26px"
34-
width="80px"
26+
label="Filter"
3527
class="filter-btn"
3628
@clicked="applyFilters"
37-
>
38-
<div class="btn-text">Filter</div>
39-
</ui-button>
29+
/>
4030
</div>
4131
</ui-menu>
4232
<ui-table
@@ -49,26 +39,22 @@
4939
<ui-button
5040
:disabled="previousButtonDisabled"
5141
class="previous-button"
52-
backgroundColor="#fff"
53-
color="#161616"
54-
height="26px"
55-
width="80px"
42+
mode="outlined"
43+
label="Previous"
44+
size="small"
45+
lowerCase
5646
@clicked="previousClicked"
57-
>
58-
<div class="btn-text">Previous</div>
59-
</ui-button>
47+
/>
6048
<div>{{ currentPage }} / {{ totalPages }}</div>
6149
<ui-button
6250
:disabled="nextButtonDisabled"
6351
class="next-button"
64-
backgroundColor="#fff"
65-
color="#161616"
66-
height="26px"
67-
width="56px"
52+
mode="outlined"
53+
label="Next"
54+
size="small"
55+
lowerCase
6856
@clicked="nextClicked"
69-
>
70-
<div class="btn-text">Next</div>
71-
</ui-button>
57+
/>
7258
</div>
7359
</template>
7460

@@ -151,13 +137,8 @@ watch(
151137

152138
<style lang="stylus" scoped>
153139
.filter-trigger {
154-
span {
155-
text-transform: uppercase;
156-
font-weight: 500;
157-
letter-spacing: 0.5px;
158-
font-size: 12px;
159-
margin-left: 4px;
160-
}
140+
display: block;
141+
margin-bottom: 8px;
161142
}
162143
163144
.items-list {
@@ -185,23 +166,19 @@ watch(
185166
margin-left: auto;
186167
}
187168
}
169+
188170
.buttons-container {
189171
display: flex;
190172
align-items: center;
191173
height: 48px;
174+
font-size: 14px;
192175
193176
.previous-button {
194177
margin-right: 16px;
195-
border: 1px solid #e0e0e0;
196178
}
197179
198180
.next-button {
199181
margin-left: 16px;
200-
border: 1px solid #e0e0e0;
201-
}
202-
203-
.btn-text {
204-
text-transform: capitalize;
205182
}
206183
}
207184
</style>

components/src/widgets/table/widget.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ table {
7272
margin: 100px;
7373
padding: 100px;
7474
line-height: 50px;
75+
font-size: 14px;
7576
}
7677
}
7778

0 commit comments

Comments
 (0)