Skip to content

Commit

Permalink
Fixed #6588 - Table sort icon not aligned properly
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Oct 16, 2024
1 parent 8eed1fd commit 0a3430c
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/primevue/src/datatable/style/DataTableStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ const theme = ({ dt }) => `
.p-datatable-sort-icon {
color: ${dt('datatable.sort.icon.color')};
font-size: ${dt('datatable.sort.icon.size')};
width: ${dt('datatable.sort.icon.size')};
height: ${dt('datatable.sort.icon.size')};
transition: color ${dt('datatable.transition.duration')};
}
Expand Down
3 changes: 3 additions & 0 deletions packages/primevue/src/treetable/style/TreeTableStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ const theme = ({ dt }) => `
.p-treetable-sort-icon {
color: ${dt('treetable.sort.icon.color')};
font-size: ${dt('treetable.sort.icon.size')};
width: ${dt('treetable.sort.icon.size')};
height: ${dt('treetable.sort.icon.size')};
transition: color ${dt('treetable.transition.duration')};
}
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/aura/datatable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/aura/treetable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/lara/datatable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/lara/treetable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/material/datatable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/material/treetable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/nora/datatable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/presets/nora/treetable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export default {
},
sortIcon: {
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}'
hoverColor: '{text.hover.muted.color}',
size: '0.875rem'
},
loadingIcon: {
size: '2rem'
Expand Down

0 comments on commit 0a3430c

Please sign in to comment.