Skip to content

Commit 61013ce

Browse files
committed
expanded the CSS customization possibilities for table sorting icons
1 parent 65e14f0 commit 61013ce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/bootstrap-vue-3/src/components/BTable/BTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
:direction="sortDescBoolean ? 'desc' : 'asc'"
3737
>
3838
<span
39-
v-if="isSortable && field.sortable && field.key === sortBy"
39+
v-if="isSortable && field.sortable"
4040
class="b-table-sort-icon text-muted small"
41+
:class="{sorted: field.key === sortBy}"
4142
/>
4243
</slot>
4344
<div>

packages/bootstrap-vue-3/src/components/BTable/_table.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@
175175
}
176176

177177
&.b-table-sortable {
178-
&.b-table-sort-asc .b-table-sort-icon::before {
178+
&.b-table-sort-asc .sorted.b-table-sort-icon::before {
179179
content: "";
180180
}
181181

182-
&.b-table-sort-desc .b-table-sort-icon::before {
182+
&.b-table-sort-desc .sorted.b-table-sort-icon::before {
183183
content: "";
184184
}
185185
}

0 commit comments

Comments
 (0)