-
Notifications
You must be signed in to change notification settings - Fork 14.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
fix: add additional ui tweaks #10275
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,6 +259,14 @@ div.Workspace { | |
&:active { | ||
background: none; | ||
} | ||
|
||
.fa.fa-close { | ||
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. I don't see the font awesome class applied anywhere, does this actually do something? If you need to add styling to the Icon, I'd recommend making a oneoff element in the const CloseIcon = styled(Icon)`
// add css styles here
.or-add-a-class {
// more styles
}
`; However, it looks like this styling is specifically to make the Icon interactable. In that case, to ensure a11y, you should wrap it in an On a side note, we should create an 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. since when a11y is a requirement? 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. not a requirement, but certainly something we should consider i think! I can't even imagine how bad it is to use Superset with a screenreader or keyboard controls.... 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. correct. this PR can't handle big issue like that. no one will care there is an icon in whole Superset is a11y. yay!! 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. this was introduced by last try (to use font awesome icon). fixed 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. could you at least add 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. I can do change for this place. but you probably have to fix all other places... 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. yup, i'll fix other stuff in the future, likely by adding a lint rule |
||
color: @gray; | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
|
||
.dropdown.btn-group.btn-group-sm { | ||
|
@@ -303,14 +311,6 @@ div.Workspace { | |
.dropdown-toggle { | ||
padding-top: 2px; | ||
} | ||
|
||
.close { | ||
opacity: 1; | ||
color: @almost-black; | ||
position: relative; | ||
top: -2px; | ||
right: -4px; | ||
} | ||
} | ||
|
||
.SqlEditor { | ||
|
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.
Another option is to use
text-muted
here.We have grays defined somewhere I think. We should make classes for our grays that we can use anywhere...
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.
https://github.com/apache/incubator-superset/blob/master/superset-frontend/stylesheets/less/variables.less#L48-L56
not sure how to use these grays in this context, @rusackas ?
superset.less
and use them as classes./TabbedSqlEditors.less
and use the variable in there?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.
it might be even better to use emotion here. The colors should all be in
styled
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.
thanks for suggestion. @rusackas do we have any example that i can follow to make similar thing? i am not sure which gray to use. thanks!