-
Notifications
You must be signed in to change notification settings - Fork 224
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
EDSC-4322: Refactor CustomizableIcons.jsx
and fix styling inconsistencies
#1842
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1842 +/- ##
==========================================
- Coverage 93.81% 93.78% -0.04%
==========================================
Files 777 778 +1
Lines 18867 18885 +18
Branches 4867 4847 -20
==========================================
+ Hits 17701 17711 +10
- Misses 1090 1095 +5
- Partials 76 79 +3 ☔ View full report in Codecov by Sentry. |
@@ -642,7 +642,7 @@ const TourSteps = ({ | |||
<ExternalLink | |||
href="https://www.earthdata.nasa.gov/learn/earthdata-search" | |||
> | |||
Earthdata Search wiki | |||
Earthdata Search |
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.
Some discussion with PO around this; since this link is not actually a wiki page this language change is preferred
@@ -25,8 +25,7 @@ import SearchSidebarHeader from '../SearchSidebarHeader' | |||
import SearchFormContainer from '../../../containers/SearchFormContainer/SearchFormContainer' | |||
import PortalLinkContainer from '../../../containers/PortalLinkContainer/PortalLinkContainer' | |||
|
|||
// eslint-disable-next-line import/no-unresolved | |||
import availablePortals from '../../../../../../portals/availablePortals.json' | |||
import availablePortals from './availablePortalsMock.json' |
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.
We have a tiny ticket to not use real portal configs in the unit tests
d54e706
to
deec39a
Compare
@@ -9,7 +9,7 @@ | |||
cursor: pointer; | |||
|
|||
.button__icon { | |||
color: rgba($color__spacesuit-white, 0.7); | |||
color: $color__carbon--40; |
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 should maybe be $color__carbon--50;
since that is what we are using in static/src/js/components/CopyableText/CopyableText.scss
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.
d73af0e
to
3722ef7
Compare
3722ef7
to
6cc8f92
Compare
EDSC-4322: revert style change EDSC-4322: Match colors
6cc8f92
to
c96ede4
Compare
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.
Still working through the last bits of the PR review but I have a few tweaks in mind that will help with the design a bit. It would be great if we could get them in now while were touching this.
- The line height on the Harmony services on the project page is too tight. We should remove the
line-height: 1
declaration on.harmony-select-item
. This is also affecting the customizable icons and makes those look better - When an access method hovered, the background of the customizable icons is too similar to the background of the access method. We should add some css to the
.access-method
so that when one is hovered, the customizable icon badge uses one step darker versions of the gray than the default. - The background color change during the hover state on the customizable icons and other badges is not serving any purpose and might make the icons look clickable, so I want to get rid of that. To fix that, we should:
- Remove the hover state css on
.customizable-icons__meta-icon
- Remove the hover state on css`.collection-results-item__meta-icon
- Remove the hover state css on
- On harmony services on the project page, the customizable icons are not aligned with the service title. Adding
align-items: flex-start
on the.access-method-radio__header-primary
class will clean that up.
EDSC-4322: remove unused class
hasCombine: false | ||
} | ||
|
||
availableCustomizationsTooltipIcons.propTypes = { |
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.
I tried combining these two the issue becomes that these are props to MetaIcon when its used so we'd need to refactor MetaIcon as well and its being used that way in other places as well for non customizable icons
CustomizableIcons.jsx
CustomizableIcons.jsx
and remove reused CSS
CustomizableIcons.jsx
and remove reused CSSCustomizableIcons.jsx
and fix styling inconsistencies
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.
@eudoroolivares2016 Personally I find the "Available" part of the new components to be a bit redundant and like the old name better but that's a matter of preference, then the new tooltips component would be named CustomizableTooltipIcons.jsx
If you do decide to move forward with the new naming, it might be better english to call the new customization icons to be
AvailableCustomizationIcons.jsx instead of AvailableCustomizationsIcons.jsx but that's up to you.
Similarly, the Icons would be AvailableCustomizationTooltipIcons.jsx instead of AvailableCustomizationsTooltipIcons.
static/src/js/components/AvailableCustomizationsIcons/AvailableCustomizationsIcons.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/AvailableCustomizationsIcons/AvailableCustomizationsIcons.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/AvailableCustomizationsIcons/AvailableCustomizationsIcons.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/AvailableCustomizationsIcons/AvailableCustomizationsIcons.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/SearchSidebar/__tests__/availablePortalsMock.json
Outdated
Show resolved
Hide resolved
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 to me other than some tiny tweaks to colors to improve contrast on the hover states. I think we should improve that while we're in here.
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.
Not related to your PR, but could you tweak the hover states on lines 58 and 101 to be $color__carbon--5
, instead of $color__carbon--10
? That extra contrast will be good.
…er selected buttons when hovered
@eudoroolivares2016 If you're gonna change the component name to AvailableCustomizationIcons, you should also change the filenames to say those as well |
Overview
What is the feature?
Standardize the classanames for
cusomizableIcons.jsx
, removes using actual portals on the unit test so that it won't fail if we make updates to portal configurations, fixes an issue in production where long harmony names are overlapping with text on the icons, some colors on the granule download options were not visible this updates their color so that they can more easily be seenWhat is the Solution?
Updates the
cusomizableIcons.jsx
component to use the established pattern of having its ownscss
file to enforce lose coupling and making sure style changes to one component do not affect another one.Updating the colors for a few buttons on the granule download links using
carbon-50
to match icons we have on the order-status pageWhat areas of the application does this impact?
List impacted areas.
Testing
Reproduction steps
Attachments
Current ops:
Feature Branch:
Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.
Checklist