-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CodeSnippet): set closed and expanded max number of rows (#8085)
* feat(codesnippet): set closed and expanded max number of rows defaulted the height to show everything (100%) added two new props maxClosedNumberOfRows and maxExpandedNumberOfRows added logic using the new props to determine when to show moreLessBtn added maxHeight style based on new props * feat(CodeSnippet): apply auto scroll to snippet-mult allow snippet-mult + snippet-container to auto scroll, both x and y remove scroll/overflow from nested snippet-expand, pre, and code conditions this will show the horizontal scroll when the snippet is closed or expanded it is a behavour change/bug fix, it will address 7574 * feat(CodeSnippet): add background to snippet buttons add background to buttons to stop scrollbars from stomping on them * feat(CodeSnippet): revert to only adding overflow-y changing to overflow - from -x/-y - on the snippet-container caused issues with scrollbars colliding with the buttons. for now only add overflow-y and address overflow clean up and scrollbars/button collisions in #7574 * feat(CodeSnippet): move overflow-y placement apply it for both closed and expanded modes * feat(CodeSnippet): changed closed to collapsed changed closed to collapsed * feat(CodeSnippet): update snapshot update snapshot * feat(CodeSnippet): rename closed to collapsed in the story rename closed to collapsed in the story Co-authored-by: Bill Guigue <Bill.Guigue@ca.ibm.com> Co-authored-by: TJ Egan <tw15egan@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
eb43164
commit cfcda43
Showing
4 changed files
with
87 additions
and
25 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