Comments (1)
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)
- Ideas for how we can deal with templates that have a lot of placeholders HOT 8
- Email regex incorrectly matches on pipe literal. HOT 3
- Previewing and validating recipient CSVs uploads is inconsistent HOT 1
- Copying API key to clipboard puts a space on either end HOT 5
- Need to create a .babelrc file for gulp to run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notifications-admin.