-
Notifications
You must be signed in to change notification settings - Fork 2
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
Aligning icons to Hypothicons library #1849
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1849 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 70 70
Lines 1303 1303
Branches 482 482
=========================================
Hits 1303 1303 ☔ View full report in Codecov by Sentry. |
I would prefer the "globe-lock" icon to keep a more generic name. Using it for restricted groups is one use-case, but we could find others in future, and it would feel weird to use an icon named "group-restricted" anywhere else. |
It would be great to test the icons that have been adjusted everywhere where we are using them, as there have been icon changes in the past that looked reasonable in isolation, but then they had to be adjusted when used in actual apps. |
Thanks for your feedback @robertknight I will adjust the name back to |
We usually use yalc to locally test changes in the frontend-shared library before releasing them. It is documented here https://github.com/hypothesis/frontend-shared/blob/02555449419a7520321bda7d0c5b9c0fe48b030c/docs/developing.md#testing-locally-with-other-projects |
This would require Jared to get a complete Hypothesis development environment working, which is not trivial, especially for the LMS. We'll have to help with this stage. |
Yeah, that's true. Probably releasing a beta would have the same problem, so the most pragmatic approach is that one of us tests the changes. |
PR aligns icons from Figma library to what's in the Pattern library. All base
.svg
files have been consistently formatted and have the same properties except those noted below.Deprecated icons:
AnnotateAlt
CheckboxOutline
GlobeAltLock
LockAltFilled
LockAlt
ReplyAlt
SortAlt
TagAltFilled
TagAlt
Breaking change:
There was were two export name changes that would require a separate PR for the
client
repo. I created a branch, but didn't have permission to publish.Export name changes:
GlobeAltIcon
->GlobeIcon
GlobeAltLockIcon
->GlobeLockIcon
Files affected:
src/sidebar/components/GroupList/GroupListItem.tsx
src/sidebar/components/GroupList/test/GroupListItem-test.js
Outstanding questions/comments:
MenuCollapse
orMenuExpand
as they appear to be slightly larger versions ofCaretDown
/CaretUp
—I don't understand why these exist or in what context a larger variant is needed.SpinnerCircle
orSpinnerSpokes
, these feel like they should be a separate component, not part of the icon library.