Boolean$table-disable-everything: false !default;Set to true to disable all the styles.
Boolean$table-disable-container: false !default;Set to true to disable the TableContainer styles.
Boolean$table-disable-dense: false !default;Set to true to disable the dense Table styles.
Boolean$table-disable-full-width: false !default;Set to true to disable the fullWidth behavior for the Table
component.
Boolean$table-disable-cell-align-top: false !default;Set to true to disable the align="top" styles for the TableCell.
Boolean$table-disable-cell-align-bottom: false !default;Set to true to disable the align="bottom" styles for the TableCell.
Boolean$table-disable-bordered: false !default;Set to true to disable border styles for the TableRow.
Boolean$table-disable-bordered-except-last: false !default;Set to true to allow the last TableRow to also gain the border styles.
Boolean$table-disable-selected: false !default;Set to true to disable the TableRow selected styles.
Boolean$table-disable-clickable: false !default;Set to true to disable the clickable TableRow styles.
Boolean$table-disable-hoverable: false !default;Set to true to disable the hoverable TableRow styles.
Boolean$table-disable-sticky: false !default;Set to true to disable all sticky table styles.
Boolean$table-disable-sticky-cell: $disable-sticky !default;Set to true to disable all the sticky cell styles within the TableBody.
Boolean$table-disable-sticky-header: $disable-sticky !default;Set to true to disable the sticky TableHeader styles.
Boolean$table-disable-sticky-footer: $disable-sticky !default;Set to true to disable the sticky TableFooter styles.
Boolean$table-disable-input-toggle: false !default;Set to true to disable the TableCheckbox and TableRadio styles.
Boolean$table-disable-cell-grow: false !default;Set to true to disable the TableCell grow styles.
Boolean$table-disable-cell-no-padding: false !default;Set to true to disable the padding="none" TableCell styles.
Boolean$table-disable-cell-sort: false !default;Set to true to disable the TableCell sort behavior styles.
Boolean$table-disable-cell-vertical-padding: false !default;Set to true to disable the padding="vertical" TableCell styles.
Color$table-light-theme-background-color: null !default;An optional light theme background color to apply to the Table. This defaults to null so it just inherits the background color.
Color$table-dark-theme-background-color: null !default;An optional dark theme background color to apply to the Table. This defaults to null so it just inherits the background color.
Color$table-background-color: theme.get-default-color(
$light-theme-background-color,
$dark-theme-background-color
) !default;The default background-color to apply to the Table component.
Color $table-light-theme-border-color: #e0e0e0 !default;The light theme border-color to apply to each TableRow.
Color $table-dark-theme-border-color: #2f2f2f !default;The dark theme border-color to apply to each TableRow.
Color $table-border-color: theme.get-default-color(
$light-theme-border-color,
$dark-theme-border-color
) !default;The default border-color to apply to each TableRow.
Number$table-border-size: divider.$size !default;The default border-width to apply to each TableRow.
Color$table-light-theme-header-background-color: null !default;Color$table-dark-theme-header-background-color: null !default;Color$table-header-background-color: theme.get-default-color(
$light-theme-header-background-color,
$dark-theme-header-background-color
) !default;Map$table-cell-typography: typography.$body-2-styles !default;The default TableCell typography styles.
Color$table-cell-color: theme.theme-get-var(text-primary-color) !default;The default TableCell text color.
Number$table-cell-height: 3.25rem !default;The default TableCell height.
Number$table-cell-dense-height: 2rem !default;The default dense TableCell height.
Color$table-cell-header-color: $cell-color !default;The default header (th) TableCell text color.
Map$table-cell-header-typography: (
font-weight: map.get(typography.$subtitle-2-styles, font-weight),
letter-spacing: map.get(typography.$subtitle-2-styles, letter-spacing),
line-height: map.get(typography.$subtitle-2-styles, line-height),
) !default;The default header (th) TableCell typography styles.
Number$table-cell-header-height: 3.5rem !default;The default header (th) TableCell height.
Number$table-cell-header-dense-height: 2.125rem !default;The default header (th) dense TableCell height.
Number$table-cell-horizontal-padding: spacing.get-var(md) !default;The default TableCell horizontal padding.
Number$table-cell-vertical-padding: calc(spacing.get-var(xs) * 1.5) !default;The default TableCell vertical padding.
Number$table-cell-input-toggle-horizontal-padding: spacing.get-var(sm) !default;The default TableCheckbox and TableRadio horizontal padding.
Number$table-cell-content-gap: spacing.get-var(sm) !default;The default gap between items in a sortable TableCell.
Number$table-sticky-cell-position: 0 !default;This is the default position of a row based sticky TableCell.
Number$table-sticky-header-position: 0 !default;This is the default position of a column based sticky TableCell.
Number$table-sticky-header-z-index: 2 !default;The default z-index for a sticky header (th) TableCell.
Number$table-sticky-header-cell-z-index: $sticky-header-z-index + 1 !default;The default z-index for a TableCheckbox or TableRadio that is acting as a sticky table header for a column.
Number$table-sticky-cell-z-index: $sticky-header-z-index - 1 !default;The default z-index for a sticky row-based TableCell.
Number$table-sticky-footer-position: 0 !default;The default position for a sticky TableFooter.
Number$table-sticky-footer-z-index: $sticky-header-z-index - 1 !default;The default z-index for a sticky TableFooter.
Color$table-sticky-background-color: theme.theme-get-var(background-color) !default;The background color to apply to a sticky table cell. This is required so that the other cells will not be visible below the cell.
Map$table-sticky-header-inactive-styles: (
transition: background transition.$linear-duration
transition.$linear-timing-function,
"&::after": (
box-shadow: box-shadows.box-shadow(4),
content: "",
inset: 0,
pointer-events: none,
opacity: 0,
position: absolute,
transition: opacity transition.$linear-duration
transition.$linear-timing-function,
z-index: 0,
),
) !default;A map of styles to apply when using the StickyTableSection component with
type="header".
Map$table-sticky-header-active-styles: (
"--rmd-background-color": theme.get-dark-elevation-color(4),
background-color: theme.theme-get-var(background-color),
"&::after": (
opacity: 1,
),
) !default;A map of styles to apply when using the StickyTableSection component with
type="header". These are the styles that are applied once the
IntersectionObserver considers the StickyTableSection to be covering other content within the table due to scrolling.
Map$table-sticky-footer-inactive-styles: $sticky-header-inactive-styles !default;A map of styles to apply when using the StickyTableSection component with
type="footer".
Map$table-sticky-footer-active-styles: $sticky-header-active-styles !default;A map of styles to apply when using the StickyTableSection component with
type="footer". These are the styles that are applied once the
IntersectionObserver considers the StickyTableSection to be covering other content within the table due to scrolling.
Color$table-row-hover-color: interaction.get-var(hover-background-color) !default;The default TableRow hover background-color.
Color$table-row-selected-color: interaction.get-var(selected-background-color) !default;The default TableRow selected background-color.
List$table-variables: (
background-color,
border-size,
border-color,
header-background-color,
cell-color,
cell-height,
cell-horizontal-padding,
cell-vertical-padding,
header-cell-height,
hover-color,
selected-color,
sticky-cell,
sticky-header,
sticky-footer,
sticky-background-color
);The available configurable css variables and mostly used internally for the
get-var, set-var, and use-var utils.
Map$table-row-hover-styles: (
background-color: get-var(hover-color),
) !default;The default TableRow hover styles.
Map$table-row-selected-styles: (
background-color: get-var(selected-color),
) !default;The default TableRow selected styles.
mixin@mixin set-var($name, $value) { … }| Name | Description | Type | Default Value |
|---|---|---|---|
$name | The supported variable name | String | — |
$value | The value to set the variable to. Supports | any | — |
mixin@mixin use-var($property, $name: $property, $fallback: null) { … }mixin@mixin use-light-theme { … }Applies the light the variables based on feature flags
mixin@mixin use-dark-theme { … }Applies the dark the variables based on feature flags
mixin@mixin variables { … }Conditionally applies the css variables based on feature flags
mixin@mixin styles($disable-layer: false) { … }Generates all the styles based on feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
function@function get-var($name, $fallback: null) { … }Stringa var() statement
| Name | Description | Type | Default Value |
|---|---|---|---|
$name | The supported variable name | String | — |
$fallback | An optional fallback value | any | null |