mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 19:30:13 -04:00
This hides the "Register" button and shows an error that's specific to one of two ways a browser may not support WebAuthn: - JavaScript is disabled (there's no possible fallback for this). - WebAuthn API is not supported (e.g. on Internet Explorer). We could add a similar check for the API in the JS code to handle the button click, but hiding it seems like enough protection. In order to avoid elements flashing when the page loads, this uses a view macro to embed a script at the start of the body element, which is the same approach used for the "js-enabled" class flag [1]. Tested with Chrome and IE 11. [1]: https://github.com/alphagov/govuk-frontend/blob/main/src/govuk/template.njk#L31
90 lines
2.6 KiB
SCSS
90 lines
2.6 KiB
SCSS
// Path to assets for use with file-url()
|
|
$path: '/static/images/';
|
|
|
|
// Dependencies from GOV.UK Frontend Toolkit
|
|
// https://github.com/alphagov/govuk_frontend_toolkit/
|
|
@import 'conditionals';
|
|
@import 'shims';
|
|
@import 'measurements';
|
|
@import 'css3';
|
|
@import 'colours';
|
|
@import 'typography';
|
|
@import 'grid_layout';
|
|
@import 'helpers';
|
|
|
|
// Dependencies from GOVU.UK Frontend Toolkit, rewritten for this application
|
|
@import 'url-helpers';
|
|
|
|
// Specific to this application, needs to go at the top of the cascade
|
|
@import 'globals';
|
|
|
|
// Dependencies from GOV.UK Elements
|
|
// https://github.com/alphagov/govuk_elements
|
|
@import 'elements/helpers';
|
|
@import 'elements/reset';
|
|
@import 'elements/details';
|
|
@import 'elements/elements-typography';
|
|
@import 'elements/forms';
|
|
@import 'elements/forms/form-multiple-choice';
|
|
@import 'elements/forms/form-validation';
|
|
@import 'elements/lists';
|
|
@import 'elements/panels';
|
|
@import 'elements/tables';
|
|
|
|
// Dependencies from GOV.UK Frontend, packaged to be specific to this application
|
|
@import './govuk-frontend/all';
|
|
|
|
// Specific to this application
|
|
@import 'local/typography';
|
|
@import 'grids';
|
|
@import 'components/cookie-message';
|
|
@import 'components/site-footer';
|
|
@import 'components/placeholder';
|
|
@import 'components/sms-message';
|
|
@import 'components/page-footer';
|
|
@import 'components/table';
|
|
@import 'components/navigation';
|
|
@import 'components/big-number';
|
|
@import 'components/banner';
|
|
@import 'components/textbox';
|
|
@import 'components/file-upload';
|
|
@import 'components/browse-list';
|
|
@import 'components/email-message';
|
|
@import 'components/api-key';
|
|
@import 'components/vendor/previous-next-navigation';
|
|
@import 'components/radios';
|
|
@import 'components/checkboxes';
|
|
@import 'components/pill';
|
|
@import 'components/show-more';
|
|
@import 'components/message';
|
|
@import 'components/research-mode';
|
|
@import 'components/tick-cross';
|
|
@import 'components/list-entry';
|
|
@import 'components/letter';
|
|
@import 'components/live-search';
|
|
@import 'components/stick-at-top-when-scrolling';
|
|
@import 'components/fullscreen-table';
|
|
@import 'components/conditional-radios';
|
|
@import 'components/vendor/breadcrumbs';
|
|
@import 'components/vendor/responsive-embed';
|
|
@import 'components/preview-pane';
|
|
@import 'components/task-list';
|
|
@import 'components/loading-indicator';
|
|
@import 'components/area-list';
|
|
@import 'components/broadcast-message';
|
|
|
|
@import 'views/dashboard';
|
|
@import 'views/users';
|
|
@import 'views/api';
|
|
@import 'views/product-page';
|
|
@import 'views/template';
|
|
@import 'views/notification';
|
|
@import 'views/send';
|
|
@import 'views/get_started';
|
|
@import 'views/history';
|
|
@import 'views/cookies';
|
|
@import 'views/webauthn';
|
|
|
|
// TODO: break this up
|
|
@import 'app';
|