-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(root): add dark variants of Accessibility, Styles images #1359
Conversation
View your branch deployment here: https://mi6.github.io/ic-design-system-githubpages/branches/1348-transfer-dark-mode-images |
a946455
to
b4395bb
Compare
b4395bb
to
b84b236
Compare
Don't know if this is part of the ticket or was discussed, but are the .mp4 files going to be changed to dark mode as well? |
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.
Spotted a few more things to add to @GCHQ-Developer-741’s points. I think these will mostly require Figma changes though
-
On the
/accessibility/needs/neurodiversity
page, the images on the left side of the page look quite fuzzy (especially compared to the ones on the right). -
On the
/accessibility/needs/visual
page, when viewed in dark mode, the image on the left has red label text on the first text field (doesn’t match the light mode image or the developed ic-text-field). -
On the
/styles/layout-spacing
page, in the dark mode image with the subtitle “Group components into containers…”, the grid and container are not really visible so it’s difficult to understand what the image is showing. -
On the
/styles/focus-indicator
page, the white part of the focus indicator in the image is not displayed. Also the image in the “Links” section is not showing at all (both light and dark mode).
Also, the text in a lot of the dark mode images in the component gallery use a different font to when they are in light mode. However, it might take quite a bit of time to fix and it’s not really that noticeable, so I think it would be fine to leave them for now and sort it at a later date?
And I think it would be nice to have the image names in camelCase if possible? It would make them easier to read so it would be quicker to find certain images if we need to make changes in future. However I don't think it's essential and would be happy for them to stay as they are if making them camelCase isn't very easy :)
002e29b
to
f0279b6
Compare
@GCHQ-Developer-847 @GCHQ-Developer-741 thanks for your comments. I've had a go at addressing them today (updating some of the poorly exported images, switching to camelCase) and here are the outstanding issues from my perspective:
I might put ComponentGallery in its own, smaller PR since it's all good to go, so that something gets into this release |
I would agree that it could maybe go in for pre-release and the adjustments could be made after the fact on the Figma side, but the dark mode images displaying in Light Mode shouldn't. If it is a deployment issue (I noticed the layout example I included is working now after the changes you made) then hopefully should be fine, but I don't think it should be on the site if they aren't switching correctly. Also, one thing I have noticed is that the third image I added earlier (on the motor needs page) doesn't line up when put next to each other. Just recording for future amendment as it seems to be a Figma change |
9c54bd7
to
bc40094
Compare
bc40094
to
98710c4
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.
One for designers but this .png is smaller than its light variant, and I'm not sure on the box shadow used on the images as it's not something we implement?
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.
Updated the image, although it now has a subtle background to all the text
98710c4
to
2f4d814
Compare
Add dark versions of the accessibility page figure images, and an index.tsx to export them Update DoDontCaution to take array of images and switch them based on theme 1348
Add index file and dark variants of images in Styles pages 1348
6054a98
2f4d814
to
6054a98
Compare
(this is based on the work of #1326)
Summary of the changes
Add dark variants of accessibility, styles pages PNGs. Add helper function passImage to set image based on theme.
Added index pages to each images/ folder to make the importing of images tidier.
This PR does not include images for:
Related issue
issue #1348
Checklist