From 98cbee868e46fa5888e923db04278e177690ffc4 Mon Sep 17 00:00:00 2001 From: Emmanuel Pelletier Date: Wed, 20 Mar 2024 15:37:18 +0100 Subject: [PATCH] feat: tiny accessibility fixes (#10) Those are micro changes to better match our accessibility standards: - add the website context in the title - change link color to match color contrast ratio required by RGAA and underline links to mark the difference with surrounding text. Chose DSFR blue - wrap everything in a
tag as nothing should be outside region tags in theory I know it's not that necessary on those pages but now they can pass automated a11y tests if we setup any :) --- views/index.ejs | 96 +++++++++++++++++++++++++++---------------------- 1 file changed, 54 insertions(+), 42 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index e9e1910..af715d3 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -3,7 +3,7 @@ - <%= locals.title %> + <%= locals.title %> - MonComptePro + -

<%= locals.title %>

-

Se connecter

-
-
- +
+

<%= locals.title %>

+

Se connecter

+ + <% if (locals.userinfo) { %> +

Information utilisateur

+
<%= locals.userinfo %>
+ <% } %> + <% if (locals.idtoken) { %> +

ID Token

+
<%= locals.idtoken %>
+ <% } %> + <% if (locals.oauth2token) { %> +

OAuth2 Token

+
<%= locals.oauth2token %>
+ <% } %> +

Interactions

+
+ +
+
+
+ +
+
+
+ +
+
+
+
-

- - Qu’est-ce que MonComptePro ? - -

-
- <% if (locals.userinfo) { %> -

Information utilisateur

-
<%= locals.userinfo %>
- <% } %> - <% if (locals.idtoken) { %> -

ID Token

-
<%= locals.idtoken %>
- <% } %> - <% if (locals.oauth2token) { %> -

OAuth2 Token

-
<%= locals.oauth2token %>
- <% } %> -

Interactions

-
- -
-
-
- -
-
-
- -
-
-
- -
-
+