Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Optimise best logo SVG #1024

Merged
merged 12 commits into from
Oct 19, 2021
Merged

Optimise best logo SVG #1024

merged 12 commits into from
Oct 19, 2021

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Oct 6, 2021

What is the purpose of this change?

Use the declarative nature of SVG with the power of source’s uniform palette implementation. Lower the precision of the SVG source to 1 decimal place using SVGOMG, because it’s visually identical at 200x zoom.

Adds a data-content attribute which connects the SVG paths with what they contain.

What does this change?

The source code for the Guardian Logo.

Screenshots

Before After (no visual change)
before after

Checklist

Accessibility

Cross browser and device testing

  • Tested with touch screen device

Responsiveness

  • Tested at all breakpoints
  • Tested with with long text
  • Stretched to fill a wide container

Documentation

  • Full API surface area is documented in the README
  • Examples in Storybook

Known issues

use the power of SVG with source’s palette
@probot-autolabeler probot-autolabeler bot added the kitchen Affects @guardian/source-react-components-development-kitchen label Oct 6, 2021
@mxdvl mxdvl requested review from SiAdcock and a team and removed request for a team October 6, 2021 08:57
mxdvl and others added 3 commits October 15, 2021 12:15
Co-authored-by: Alex Sanders <alex@sndrs.dev>
- 2-decimal precision
- groupings based on colour
- attributes indicating the content
This should improve accessibility for screen readers

Co-authored-by: Simon Adcock <simonadcock2@gmail.com>
@mxdvl mxdvl requested a review from a team as a code owner October 15, 2021 11:26
@mxdvl mxdvl enabled auto-merge (squash) October 15, 2021 12:58
@mxdvl mxdvl requested a review from SiAdcock October 18, 2021 15:27
@mxdvl
Copy link
Contributor Author

mxdvl commented Oct 18, 2021

The Tested with a screen reader link does not seem to be working.

Apart from that, I think this is good to go? It’s a small improvement, but acts as a reminded that SVG is code representing graphics!

We could also use fonts directly, if we know they’re available, but I appreciate that this could go against brand safety.

@jamie-lynch
Copy link

The Tested with a screen reader link does not seem to be working.

Good spot! I've fixed them in #1076

@mxdvl mxdvl merged commit 1e39736 into main Oct 19, 2021
@mxdvl mxdvl deleted the mxdvl/best-logo-true-svg branch October 19, 2021 08:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kitchen Affects @guardian/source-react-components-development-kitchen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants