Skip to content

Commit

Permalink
Adjusted advanced table classname to separate from basic table
Browse files Browse the repository at this point in the history
  • Loading branch information
skduncan committed Dec 20, 2024
1 parent 17d4ae1 commit 510cf4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

// Responsive Styles
@media only screen and (max-width: $screen-xl-min) {
&[class*="table-responsive-scroll"] {
&[class*="advanced-table-responsive-scroll"] {
border-radius: 4px;
box-shadow: 1px 0 0 0px $border_light,
-1px 0 0 0px $border_light;
Expand Down Expand Up @@ -150,7 +150,7 @@
}
}
@media only screen and (min-width: $screen-xl-min) {
&[class*="table-responsive-scroll"] {
&[class*="advanced-table-responsive-scroll"] {
overflow-x: visible;
}
}
Expand Down Expand Up @@ -200,7 +200,7 @@
}
// Dark Mode Responsive Styles
@media only screen and (max-width: $screen-xl-min) {
&[class*="table-responsive-scroll"] {
&[class*="advanced-table-responsive-scroll"] {
border-radius: 4px;
box-shadow: 1px 0 0 0px $border_dark,
-1px 0 0 0px $border_dark;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const AdvancedTable = (props: AdvancedTableProps) => {
const htmlProps = buildHtmlProps(htmlOptions)
const classes = classnames(
buildCss("pb_advanced_table"),
`table-responsive-${responsive}`,
`advanced-table-responsive-${responsive}`,
globalProps(props),
className
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ test("responsive prop functions as expected", () => {
)

const kit = screen.getByTestId(testId)
expect(kit).toHaveClass("pb_advanced_table table-responsive-scroll")
expect(kit).toHaveClass("pb_advanced_table advanced-table-responsive-scroll")
})

test("responsive none prop functions as expected", () => {
Expand All @@ -483,7 +483,7 @@ test("responsive none prop functions as expected", () => {
)

const kit = screen.getByTestId(testId)
expect(kit).toHaveClass("pb_advanced_table table-responsive-none")
expect(kit).toHaveClass("pb_advanced_table advanced-table-responsive-none")
})

test("customRenderer prop functions as expected", () => {
Expand Down

0 comments on commit 510cf4f

Please sign in to comment.