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

All changes labelled for version 4 + David H's commit #371

Closed
wants to merge 19 commits into from

Commits on Oct 21, 2024

  1. Stable sort

    try to avoid left menu jumping around
    heathd authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    d653cae View commit details
    Browse the repository at this point in the history
  2. Bump ruby version for the example project

    With this commit, we are just updating the ruby version for the example
    project since the current version is old and no longer supported.
    marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    7b07e06 View commit details
    Browse the repository at this point in the history
  3. Only wrap images with alt text in hyperlinks

    When we wrap images in hyperlinks, we make the
    image's alt text their only content. If those
    images have no alt text, they are effectively
    empty links.
    
    This means they have no accessible name if queried
    by an accessibility API:
    
    https://w3c.github.io/html-aam/#img-element-accessible-name-computation
    
    ...so it'll be up to the screen reader to guess.
    In testing, this ends up being the file name,
    which can't be relied on to explain the image. All
    in all, this behaviour breaks the non-text content
    success criterion from WCAG 2.2:
    
    https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html
    
    This issue is recorded here:
    
    #355
    
    This commit take the approach of introducing a
    guard against images with no alt text and
    choosing not to wrap them in hyperlinks when
    found.
    
    My Ruby is basic at best but I looked at the
    method we're overwriting from the Red Carpet HTML
    renderer and copied across its interface more
    exactly, to make it clear where the alt_text
    variable comes from.
    tombye authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    4e43a4a View commit details
    Browse the repository at this point in the history
  4. Update tech_docs_html_renderer.rb

    Rewrite alt text guard to be more exact
    tombye authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    aeab784 View commit details
    Browse the repository at this point in the history
  5. Update CHANGELOG

    tombye authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    8b6f116 View commit details
    Browse the repository at this point in the history
  6. Update paths for govuk-frontend v5

    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    3e375a3 View commit details
    Browse the repository at this point in the history
  7. Remove special cases for IE 8, no longer supported

    we're no longer targeting any IE prior
    to 11, so removing this out, see:
    
    https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md#500-breaking-release
    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    02fbe7c View commit details
    Browse the repository at this point in the history
  8. Update govuk-frontend to v5.6.0

    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    e6e8dab View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5387b2c View commit details
    Browse the repository at this point in the history
  10. Create an new javascript entry point for

    govuk-frontend
    
    As govuk-frontend encourages its use within
    script type=module, we need to create a
    separate entry for it as we do not want
    any downstrema project to change the way they write
    their own javascript.
    
    This PR
    - adds a new zgovuk_frontend.js` include to core layout
    - removes `all.js` import from `govuk_tech_docs.js`
    - creates a new `govuk_frontend_all.js` entry in
    the lib that imports `all.bundle.js` from the
    NPM package
    - adds a new `govuk_frontend.js` entry point in
    the example project that pulls in the
    `govuk_frontend_all.js` from the lib
    - adds new minifier - https://github.com/ahorek/terser-ruby
    as the built-in one doesn't support ES6
    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    e0a4390 View commit details
    Browse the repository at this point in the history
  11. Use sassc-embeded to compile Sass

    To do: see if we can configure to silence warning
    
    Built-in sassc compiler doesn't compile
    stylesheet do to them, containing source maps
    
    https://github.com/sass-contrib/sassc-embedded-shim-ruby
    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    8cfd667 View commit details
    Browse the repository at this point in the history
  12. CSS: remove crown adjustment

    No longer needed with the upgrade to v5
    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    05dce30 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b095a57 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    254eb31 View commit details
    Browse the repository at this point in the history
  15. Add to changelog

    kr8n3r authored and marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    b4a5e53 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a38994d View commit details
    Browse the repository at this point in the history
  17. Prevent access to this.$sticky unless it is ready

    This change adds checks to ensure that this.$sticky exists and it is visible
    before trying to access its methods.
    
    Further information at #368
    marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    082858b View commit details
    Browse the repository at this point in the history
  18. Update JQuery visibility check on sticky element

    Following a PR review[1], this commit changes the test on this.$sticky, in
    order to verify if the object actually contains any elements.
    
    Further details in the PR[2].
    
    [1]
    #368 (comment)
    
    [2]
    #368
    marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    ee66cb8 View commit details
    Browse the repository at this point in the history
  19. Introduce a custom module to silence dart sass warnings

    With this change, we have defined a custom SassWarningSupressor module that
    overrides the warn method so that we can ignore messages containing 'sass'
    or 'dart-sass' only.
    
    This is needed so that we can avoid sass warnings in downstream projects.
    marcotranchino committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    4672e78 View commit details
    Browse the repository at this point in the history