-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
chore: Add height/width TrashIcon SVG(18px/18px)-Edit Dataset modal #14956
chore: Add height/width TrashIcon SVG(18px/18px)-Edit Dataset modal #14956
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14956 +/- ##
==========================================
- Coverage 77.78% 77.25% -0.54%
==========================================
Files 966 969 +3
Lines 49629 49966 +337
Branches 6314 6432 +118
==========================================
- Hits 38606 38600 -6
- Misses 10822 11161 +339
- Partials 201 205 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -261,7 +261,7 @@ export default class CRUDCollection extends React.PureComponent< | |||
aria-label="Delete item" | |||
className="pointer" | |||
data-test="crud-delete-icon" | |||
iconSize="m" | |||
css={{fontSize:"18px"}} |
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.
Can you try using style
instead of css
here? I think that's probably the best way to change this, check out this article.
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.
The other thing you could try is to change iconSize to "s".
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, @lyndsiWilliams and @AAfghahi! I Changed css
to style
. Based on the article you linked, Lyndsi, it looks like I was on the right track with using fontSize
. I did try setting iconSize="l"
, but that only brought the icon up to 16px*16px
and the ticket said 18px*18px
.
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.
Perfect, this looks great!
…rewbastian/trash_icon_style
…ndrewbastian/superset into andrewbastian/trash_icon_style
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.
This looks good! Thank you!
small nit: did you try it with iconSize="s"?
I did try that on the |
hmm, it might be fontSize 12. In which case this is probably the ideal solution. |
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.
Looks good to me! 😁
@andrewbastian LGTM! @eschutho could you run the workflow for this one? |
@@ -261,7 +261,7 @@ export default class CRUDCollection extends React.PureComponent< | |||
aria-label="Delete item" | |||
className="pointer" | |||
data-test="crud-delete-icon" | |||
iconSize="m" | |||
style={{fontSize: '18px'}} |
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.
style={{fontSize: '18px'}} | |
style={{fontSize: '18px' }} |
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.
can we change this to use the css prop instead of style? That's a pattern we've been trying to follow. Thanks!
/testenv up |
@eschutho Ephemeral environment spinning up at http://35.166.235.161:8080. Credentials are |
visual testing looks good 👍 Thanks @andrewbastian! |
Ephemeral environment shutdown and build artifacts deleted. |
…pache#14956) * Add min-height/width TrashIcon SVG(18px/18px)-Edit Dataset modal * Reworked styling to be inline on SVG component via CSS from `emotion` * Changed parameter from `css` to 'style' * Fixed lint error. * Changed `style` back to `css` Co-authored-by: andrewbastian <andrewbastian@hosaka-deck.lan>
…pache#14956) * Add min-height/width TrashIcon SVG(18px/18px)-Edit Dataset modal * Reworked styling to be inline on SVG component via CSS from `emotion` * Changed parameter from `css` to 'style' * Fixed lint error. * Changed `style` back to `css` Co-authored-by: andrewbastian <andrewbastian@hosaka-deck.lan>
…pache#14956) * Add min-height/width TrashIcon SVG(18px/18px)-Edit Dataset modal * Reworked styling to be inline on SVG component via CSS from `emotion` * Changed parameter from `css` to 'style' * Fixed lint error. * Changed `style` back to `css` Co-authored-by: andrewbastian <andrewbastian@hosaka-deck.lan>
SUMMARY
Added
fontSize: '18px';
to Trash Icons on Edit Dataset modal's 3 tabs which use this Icon. - metrics, columns, and calculated columns.This was done inline to the SVG component via the CSS parameter. Also removed
iconSize='m'
parameter fromIcon.Trash
component.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
AFTER
UNCHANGED TRASH ICONS
TESTING INSTRUCTIONS
Attached above are screenshots of developer-tools showing the changes made. The layout box model shows that the height and width of the Trash SVG are set to 18px.
ADDITIONAL INFORMATION