Giter Club home page Giter Club logo

Comments (1)

leohemsted avatar leohemsted commented on June 29, 2024

Hi @toomore,

Thanks for raising! I'm not entirely sure what's happening with your setup - it's perfectly valid to have a span inside a button within the HTML spec, and modern browsers should appropriately render that. Indeed, testing this locally and on our production system, this code works fine as intended and the span is correctly rendered. We don't want the template name to be visible since the template name's already mentioned at the top of the banner, however, we want screen readers to give full context when reading out the button text, so we add the template name within a govuk-visually-hidden css class.

I'd suggest ensuring you have an up to date browser, have updated your govuk-frontend-jinja python repo and govuk-frontend repo to the latest version (and rebuilt css/js with npm run build),

While I was investigating this I did notice and fix an XSS vulnerability with this component, so if you've forked notifications-admin I'd encourage you to ensure you've got the most recent version.

As a final note, this repository was not designed with outside use in mind, rather, this is a codebase we've written for our own platform (https://www.notifications.service.gov.uk/) and is public since we're committed to coding in the open where possible. As such, we won't always be able to prioritise investigating issues raised if they do not impact our production system. If you do find other issues or concerns feel free to raise them, but I cannot promise we'll be able to work with you to solve every single one.

Many thanks,

Leo

from notifications-admin.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.