Skip to content
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

Correctly camel case SVG attributes in the header and footer #1838

Merged
merged 2 commits into from
Jun 18, 2020

Commits on Jun 17, 2020

  1. Correctly camel case SVG attributes

    As raised in #1780, lowercasing this attribute causes issue with Angular.
    
    I've searched the codebase for any other camel-cased SVG attributes and viewBox is the only one that we use:
    
    ```
    $ ag 'allowReorder|attributeName|attributeType|autoReverse|baseFrequency|baseProfile|calcMode|clipPathUnits|contentScriptType|contentStyleType|diffuseConstant|edgeMode|externalResourcesRequired|filterRes|filterUnits|glyphRef|gradientTransform|gradientUnits|kernelMatrix|kernelUnitLength|keyPoints|keySplines|keyTimes|lengthAdjust|limitingConeAngle|markerHeight|markerUnits|markerWidth|maskContentUnits|maskUnits|numOctaves|pathLength|patternContentUnits|patternTransform|patternUnits|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|referrerPolicy|refX|refY|repeatCount|repeatDur|requiredExtensions|requiredFeatures|specularConstant|specularExponent|spreadMethod|startOffset|stdDeviation|stitchTiles|surfaceScale|systemLanguage|tableValues|targetX|targetY|textLength|viewBox|viewTarget|xChannelSelector|yChannelSelector|zoomAndPan' src
    
    src/govuk/components/footer/template.njk
    61:          viewBox="0 0 483.2 195.7"
    
    src/govuk/components/button/template.njk
    27:<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
    
    src/govuk/components/header/template.njk
    24:            viewBox="0 0 132 97"
    
    src/govuk/assets/images/govuk-mask-icon.svg
    1:<svg xmlns="http://www.w3.org/2000/svg" width="132" height="97" viewBox="0 0 132 97" version="1.1">
    ```
    
    Fixes #1780.
    36degrees committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    b327931 View commit details
    Browse the repository at this point in the history
  2. Add to changelog

    36degrees committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    4bf97cc View commit details
    Browse the repository at this point in the history