-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design Changes to Visualize Legend #6169
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8f9d8b3
css changes to the legend
stormpython 680e0bf
removing inline style, adding color to font awesome icon
stormpython e712612
fixing broken tests
stormpython da2725d
Merge remote-tracking branch 'upstream/feature/design' into legend
stormpython 400a31c
removing legend from Discover page, also removing functional tests fo…
stormpython d5c0829
removing legend tests
stormpython fc4cf84
removing the word , making open/close icon inline with the legend list
stormpython 552bc63
reducing the size of the legend icon
stormpython File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,17 @@ visualize-legend { | |
flex-direction: row; | ||
} | ||
|
||
.legend-title { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
i { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. icons are one of the slower css selectors, is there a class or something else you could use? |
||
color: #BEBEBE; | ||
} | ||
} | ||
|
||
.legend-col-wrapper { | ||
.flex-parent(0, 0, auto); | ||
flex-direction: row; | ||
z-index: 10; | ||
min-height: 0; | ||
overflow: hidden; | ||
|
@@ -24,26 +32,24 @@ visualize-legend { | |
background-color: @sidebar-hover-bg; | ||
} | ||
|
||
background-color: @sidebar-bg; | ||
font-size: 10px; | ||
height: 30px; | ||
padding: 8px 3px; | ||
border-bottom-left-radius: @border-radius-small; | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
font-size: 14px; | ||
} | ||
|
||
.column-labels { | ||
text-align: right; | ||
} | ||
|
||
.legend-ul { | ||
border-left: 1px solid @sidebar-bg; | ||
width: 150px; | ||
flex: 1 1 auto; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
color: @legend-item-color; | ||
list-style-type: none; | ||
padding: 0; | ||
padding-top: 10px; | ||
margin-bottom: 0; | ||
visibility: visible; | ||
min-height: 0; | ||
|
@@ -116,5 +122,3 @@ visualize-legend { | |
.legend-value:hover { | ||
cursor: pointer; | ||
} | ||
|
||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We already have an
addLegend
parameter that isn't used due to @rashidkpc changes to the legend. On the discover page, we don't need the legend and therefore adding the option foraddLegend
back is an easy way to remove it.