Skip to content

Commit

Permalink
feat: add new css variable to DataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Apr 27, 2023
1 parent a4bed0d commit a12bda5
Show file tree
Hide file tree
Showing 8 changed files with 6,653 additions and 3,409 deletions.
10,046 changes: 6,643 additions & 3,403 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/DataTable/DataTable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

th {
background-color: $light-300;
padding: $data-table-head-cell-padding;
padding: $data-table-cell-padding;
text-align: start;
}

Expand Down
2 changes: 1 addition & 1 deletion src/DataTable/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ $data-table-footer-position: var(--pgn-spacing-data-table-footer-position) !defa
$data-table-pagination-dropdown-max-height: var(--pgn-size-data-table-dropdown-pagination-max-height) !default;
$data-table-pagination-dropdown-min-width: var(--pgn-size-data-table-dropdown-pagination-min-width) !default;
$data-table-is-loading-bg: var(--pgn-color-data-table-bg-is-loading) !default;
$data-table-layout-sidebar-width: 12rem !default;
$data-table-layout-sidebar-width: var(--pgn-size-data-table-layout-sidebar-width) !default;
2 changes: 1 addition & 1 deletion styles/css/core/custom-media-breakpoints.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* IMPORTANT: This file is the result of assembling design tokens
* Do not edit directly
* Generated on Mon, 24 Apr 2023 23:00:41 GMT
* Generated on Thu, 27 Apr 2023 12:12:55 GMT
*/

@custom-media --pgn-size-breakpoint-xs (min-width: 0);
Expand Down
3 changes: 2 additions & 1 deletion styles/css/core/variables.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* IMPORTANT: This file is the result of assembling design tokens
* Do not edit directly
* Generated on Mon, 24 Apr 2023 23:00:41 GMT
* Generated on Thu, 27 Apr 2023 12:12:55 GMT
*/

:root {
Expand Down Expand Up @@ -320,6 +320,7 @@
--pgn-size-form-input-width-focus: 0.063rem;
--pgn-size-form-input-width-hover: 0.063rem;
--pgn-size-dropdown-min-width: 18rem;
--pgn-size-data-table-layout-sidebar-width: 12rem;
--pgn-size-data-table-dropdown-pagination-min-width: 6rem;
--pgn-size-data-table-dropdown-pagination-max-height: 60vh;
--pgn-size-data-table-border: 1px;
Expand Down
2 changes: 1 addition & 1 deletion styles/css/themes/light/utility-classes.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* IMPORTANT: This file is the result of assembling design tokens
* Do not edit directly
* Generated on Mon, 24 Apr 2023 23:00:41 GMT
* Generated on Thu, 27 Apr 2023 12:12:55 GMT
*/

.bg-accent-a {
Expand Down
2 changes: 1 addition & 1 deletion styles/css/themes/light/variables.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* IMPORTANT: This file is the result of assembling design tokens
* Do not edit directly
* Generated on Mon, 24 Apr 2023 23:00:41 GMT
* Generated on Thu, 27 Apr 2023 12:12:55 GMT
*/

:root {
Expand Down
3 changes: 3 additions & 0 deletions tokens/src/core/components/DataTable.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"max-height": { "value": "60vh", "type": "dimension", "source": "$data-table-pagination-dropdown-max-height" },
"min-width": { "value": "6rem", "type": "dimension", "source": "$data-table-pagination-dropdown-min-width" }
}
},
"layout": {
"sidebar-width": { "value": "12rem", "type": "dimension", "source": "$data-table-layout-sidebar-width" }
}
}
},
Expand Down

0 comments on commit a12bda5

Please sign in to comment.