Commits on Source 3
-
Paul Gascou-Vaillancourt authored
This rewrites some of `GlTable`'s styles to not override CSS utils styling. BREAKING CHANGE: This rewrites how `GlTable`'s `TH` elements text alignment is applied. If you were previously passing `gl-text-right` to a table's `thClass` field option, you should migrate to the `thAlignRight` option instead. Not migrating could cause rendering issues in right-aligned sortable columns. Before: ```js const fields = [ { key: "column_one", label: __("First column"), sortable: true, thClass: 'gl-text-right', }, ]; ``` After: ```js const fields = [ { key: "column_one", label: __("First column"), sortable: true, thAlignRight: true, }, ]; ``` -
Paul Slaughter authored
fix(GlTable): do not override CSS utils styling See merge request !4613 Merged-by:
Paul Slaughter <pslaughter@gitlab.com>
Approved-by: Natalia Tepluhina <ntepluhina@gitlab.com> Approved-by:
Paul Slaughter <pslaughter@gitlab.com>
Reviewed-by: Paul Gascou-Vaillancourt <pgascouvaillancourt@gitlab.com> Co-authored-by:
Paul Gascou-Vaillancourt <paul.gascvail@gmail.com>
-
semantic-release-bot authored
# [94.0.0](v93.4.0...v94.0.0) (2024-09-20) ### Bug Fixes * **GlTable:** do not override CSS utils styling ([9c3ce107](9c3ce107)) ### BREAKING CHANGES * **GlTable:** This rewrites how `GlTable`'s `TH` elements text alignment is applied. If you were previously passing `gl-text-right` to a table's `thClass` field option, you should migrate to the `thAlignRight` option instead. Not migrating could cause rendering issues in right-aligned sortable columns. Before: ```js const fields = [ { key: "column_one", label: __("First column"), sortable: true, thClass: 'gl-text-right', }, ]; ``` After: ```js const fields = [ { key: "column_one", label: __("First column"), sortable: true, thAlignRight: true, }, ]; ```