-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PBNTR-716] Table kit: "Sticky Left Column" variant styling - React a…
…nd Rails (#4027) **What does this PR do?** A clear and concise description with your runway ticket url. [PBNTR-716](https://runway.powerhrg.com/backlog_items/PBNTR-716) As a Playbook dev, I want to add a dynamically rendering shadow to the right column of the "Sticky Left Column" doc example, So that we can ensure continuity in our table kit design. #### Checklist: - [x] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [x] **DEPLOY** I have added the `milano` label to show I'm ready for a review.
- Loading branch information
Showing
12 changed files
with
89 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
playbook/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The `stickyLeftColumn` prop expects an array of the column ids you want to be sticky. Make sure to add the corresponding id to the `<th>` and `<td>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 28 additions & 3 deletions
31
playbook/app/pb_kits/playbook/pb_table/styles/_scroll.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
.table-responsive-scroll { | ||
display: block; | ||
overflow-x: auto; | ||
@import "../../tokens/screen_sizes"; | ||
|
||
.table-responsive-scroll { | ||
display: block; | ||
overflow-x: scroll; | ||
|
||
// Responsive Styles | ||
@media (max-width: 1600px) { | ||
&[class*="table-responsive-scroll"] { | ||
border-radius: 4px; | ||
box-shadow: 1px 0 0 0px $border_light | ||
} | ||
|
||
&[class^=pb_table].table-sm.table-card thead tr th:last-child, | ||
&[class^=pb_table].table-sm:not(.no-hover).table-card tbody tr td:last-child { | ||
border-right-width: 0px; | ||
} | ||
|
||
&[class^=pb_table].table-md.table-card thead tr th:last-child, | ||
&[class^=pb_table].table-md:not(.no-hover).table-card tbody tr td:last-child { | ||
border-right-width: 0px; | ||
} | ||
|
||
&[class^=pb_table].table-lg.table-card thead tr th:last-child, | ||
&[class^=pb_table].table-lg:not(.no-hover).table-card tbody tr td:last-child { | ||
border-right-width: 0px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters