Skip to content

Commit

Permalink
chore: table: updates snaps and sticky unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore-eightfold committed Jun 27, 2023
1 parent 0837e8e commit 345ab55
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 195 deletions.
1 change: 1 addition & 0 deletions src/components/Table/Internal/Tests/Sticky.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ describe('Table.Sticky', () => {
const wrapper = mount(<TableDemo />);

expect(wrapper.find('.table-cell-fix-sticky').at(1).prop('style')).toEqual({
borderRightColor: 'transparent',
position: 'sticky',
right: 0,
});
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -275,7 +275,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -342,7 +342,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -1497,7 +1497,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -1563,7 +1563,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -1630,7 +1630,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -3925,7 +3925,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -3991,7 +3991,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4058,7 +4058,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4541,7 +4541,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4607,7 +4607,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4674,7 +4674,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4825,7 +4825,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4891,7 +4891,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -4958,7 +4958,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -9850,7 +9850,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -9916,7 +9916,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -9983,7 +9983,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -10134,7 +10134,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -10200,7 +10200,7 @@ LoadedCheerio {
"next": Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down Expand Up @@ -10267,7 +10267,7 @@ LoadedCheerio {
Node {
"attribs": Object {
"class": "table-cell table-cell-fix-right table-cell-fix-right-first",
"style": "position: sticky; right: 0px;",
"style": "position: sticky; right: 0px; border-right-color: transparent;",
},
"children": Array [
Node {
Expand Down
Loading

0 comments on commit 345ab55

Please sign in to comment.