Skip to content

Commit

Permalink
Correction du focus sur les boutons modales.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDgop committed Dec 5, 2024
1 parent c992286 commit 0c8a67c
Show file tree
Hide file tree
Showing 31 changed files with 101 additions and 63 deletions.
2 changes: 1 addition & 1 deletion dist/extension/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Press escape to close the mask."
},
"setting_marginAlign": {
"message": "Margin & Alignment"
"message": "Margin & Landmark"
},
"setting_marginAlign_instruction": {
"message": "To anchor reading to the left"
Expand Down
2 changes: 1 addition & 1 deletion dist/extension/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Appuyer sur échap pour fermer le masque."
},
"setting_marginAlign": {
"message": "Marge et alignement"
"message": "Marge et repères"
},
"setting_marginAlign_instruction": {
"message": "Pour ancrer la lecture à gauche"
Expand Down
8 changes: 4 additions & 4 deletions dist/extension/assets/json/modes-of-use.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.20",
"version": "1.0.21",
"selectedMode": "facilePlus",
"modes": [
{
Expand Down Expand Up @@ -134,7 +134,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -682,7 +682,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -870,7 +870,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 1,
"isTool": false,
"order": null
Expand Down
4 changes: 2 additions & 2 deletions dist/extension/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/extension/css/styles.min.css.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/extension/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* orange-confort-plus - version 5.0.0-alpha.8 - 12/11/2024
* orange-confort-plus - version 5.0.0-alpha.8 - 05/12/2024
* Enhance user experience on web sites
* © 2014 - 2024 Orange SA
*/
Expand Down Expand Up @@ -1877,7 +1877,7 @@ class DeleteBackgroundImagesService {
classDeleteBackgroundImg=`${PREFIX}delete-background-img`;
classDeleteForegroundImg=`${PREFIX}delete-foreground-img`;
classSpanImage=`${PREFIX}delete-background-images__span`;
styleDeleteBackgroundImages=`\n\t\t.${this.classDeleteBackgroundImg},\n\t\t.${this.classDeleteBackgroundImg}:before,\n\t\t.${this.classDeleteBackgroundImg}:after {\n\t\t\tbackground-image: none !important;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t}\n\t`;
styleDeleteBackgroundImages=`\n\t\t.${this.classDeleteBackgroundImg},\n\t\t.${this.classDeleteBackgroundImg}:before,\n\t\t.${this.classDeleteBackgroundImg}:after {\n\t\t\tbackground-image: none !important;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t}\n\n\t\t.${this.classDeleteBackgroundImg} * {\n\t\t\tcolor: black;\n\t\t}\n\t`;
styleDeleteForegroundImages=`\n\t\t.${this.classSpanImage} {\n\t\t\tfont-size: 1rem;\n\t\t}\n\n\t\t.${this.classDeleteForegroundImg} {\n\t\t\tvisibility: hidden !important;\n\t\t}\n\t`;
styleDeleteTransparencyEffects=`\n\t\t*, *::before, *::after {\n\t\t\topacity: 1 !important;\n\t\t\tfilter: none !important\n\t\t}\n\t`;
constructor() {
Expand Down Expand Up @@ -3720,7 +3720,7 @@ customElements.define("app-capital-letters", CapitalLettersComponent);

const tmplClearlyLinks = document.createElement("template");

tmplClearlyLinks.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n\t<app-btn-modal class="d-none"></app-btn-modal>\n</div>\n`;
tmplClearlyLinks.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n</div>\n`;

class ClearlyLinksComponent extends AbstractSetting {
constructor() {
Expand Down Expand Up @@ -3976,7 +3976,7 @@ customElements.define("app-scroll-aspect", ScrollAspectComponent);

const tmplScrollType = document.createElement("template");

tmplScrollType.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n\t<app-btn-modal class="d-none"></app-btn-modal>\n</div>\n`;
tmplScrollType.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n</div>\n`;

class ScrollTypeComponent extends AbstractSetting {
constructor() {
Expand Down Expand Up @@ -4132,7 +4132,7 @@ customElements.define("app-text-color", TextColorComponent);

const btnModalLayout = document.createElement("template");

btnModalLayout.innerHTML = `\n\t<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice"></button>`;
btnModalLayout.innerHTML = `\n\t<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice">\n\t</button>`;

class BtnModalComponent extends HTMLElement {
static observedAttributes=[ "data-name", "data-disabled" ];
Expand Down
4 changes: 2 additions & 2 deletions dist/extension/js/toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/extension/js/toolbar.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/serveur/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Press escape to close the mask."
},
"setting_marginAlign": {
"message": "Margin & Alignment"
"message": "Margin & Landmark"
},
"setting_marginAlign_instruction": {
"message": "To anchor reading to the left"
Expand Down
2 changes: 1 addition & 1 deletion dist/serveur/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Appuyer sur échap pour fermer le masque."
},
"setting_marginAlign": {
"message": "Marge et alignement"
"message": "Marge et repères"
},
"setting_marginAlign_instruction": {
"message": "Pour ancrer la lecture à gauche"
Expand Down
8 changes: 4 additions & 4 deletions dist/serveur/assets/json/modes-of-use.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.20",
"version": "1.0.21",
"selectedMode": "facilePlus",
"modes": [
{
Expand Down Expand Up @@ -134,7 +134,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -682,7 +682,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -870,7 +870,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 1,
"isTool": false,
"order": null
Expand Down
4 changes: 2 additions & 2 deletions dist/serveur/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/serveur/css/styles.min.css.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/serveur/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* orange-confort-plus - version 5.0.0-alpha.8 - 12/11/2024
* orange-confort-plus - version 5.0.0-alpha.8 - 05/12/2024
* Enhance user experience on web sites
* © 2014 - 2024 Orange SA
*/
Expand Down Expand Up @@ -1136,7 +1136,7 @@ class DeleteBackgroundImagesService {
classDeleteBackgroundImg=`${PREFIX}delete-background-img`;
classDeleteForegroundImg=`${PREFIX}delete-foreground-img`;
classSpanImage=`${PREFIX}delete-background-images__span`;
styleDeleteBackgroundImages=`\n\t\t.${this.classDeleteBackgroundImg},\n\t\t.${this.classDeleteBackgroundImg}:before,\n\t\t.${this.classDeleteBackgroundImg}:after {\n\t\t\tbackground-image: none !important;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t}\n\t`;
styleDeleteBackgroundImages=`\n\t\t.${this.classDeleteBackgroundImg},\n\t\t.${this.classDeleteBackgroundImg}:before,\n\t\t.${this.classDeleteBackgroundImg}:after {\n\t\t\tbackground-image: none !important;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t}\n\n\t\t.${this.classDeleteBackgroundImg} * {\n\t\t\tcolor: black;\n\t\t}\n\t`;
styleDeleteForegroundImages=`\n\t\t.${this.classSpanImage} {\n\t\t\tfont-size: 1rem;\n\t\t}\n\n\t\t.${this.classDeleteForegroundImg} {\n\t\t\tvisibility: hidden !important;\n\t\t}\n\t`;
styleDeleteTransparencyEffects=`\n\t\t*, *::before, *::after {\n\t\t\topacity: 1 !important;\n\t\t\tfilter: none !important\n\t\t}\n\t`;
constructor() {
Expand Down Expand Up @@ -2979,7 +2979,7 @@ customElements.define("app-capital-letters", CapitalLettersComponent);

const tmplClearlyLinks = document.createElement("template");

tmplClearlyLinks.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n\t<app-btn-modal class="d-none"></app-btn-modal>\n</div>\n`;
tmplClearlyLinks.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n</div>\n`;

class ClearlyLinksComponent extends AbstractSetting {
constructor() {
Expand Down Expand Up @@ -3235,7 +3235,7 @@ customElements.define("app-scroll-aspect", ScrollAspectComponent);

const tmplScrollType = document.createElement("template");

tmplScrollType.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n\t<app-btn-modal class="d-none"></app-btn-modal>\n</div>\n`;
tmplScrollType.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n</div>\n`;

class ScrollTypeComponent extends AbstractSetting {
constructor() {
Expand Down Expand Up @@ -3391,7 +3391,7 @@ customElements.define("app-text-color", TextColorComponent);

const btnModalLayout = document.createElement("template");

btnModalLayout.innerHTML = `\n\t<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice"></button>`;
btnModalLayout.innerHTML = `\n\t<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice">\n\t</button>`;

class BtnModalComponent extends HTMLElement {
static observedAttributes=[ "data-name", "data-disabled" ];
Expand Down
4 changes: 2 additions & 2 deletions dist/serveur/js/toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/serveur/js/toolbar.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Press escape to close the mask."
},
"setting_marginAlign": {
"message": "Margin & Alignment"
"message": "Margin & Landmark"
},
"setting_marginAlign_instruction": {
"message": "To anchor reading to the left"
Expand Down
2 changes: 1 addition & 1 deletion docs/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Appuyer sur échap pour fermer le masque."
},
"setting_marginAlign": {
"message": "Marge et alignement"
"message": "Marge et repères"
},
"setting_marginAlign_instruction": {
"message": "Pour ancrer la lecture à gauche"
Expand Down
8 changes: 4 additions & 4 deletions docs/assets/json/modes-of-use.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.20",
"version": "1.0.21",
"selectedMode": "facilePlus",
"modes": [
{
Expand Down Expand Up @@ -134,7 +134,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -682,7 +682,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -870,7 +870,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 1,
"isTool": false,
"order": null
Expand Down
4 changes: 2 additions & 2 deletions docs/css/styles.min.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* orange-confort-plus - version 5.0.0-alpha.8 - 12/11/2024
* orange-confort-plus - version 5.0.0-alpha.8 - 05/12/2024
* Enhance user experience on web sites
* © 2014 - 2024 Orange SA
*/
Expand Down Expand Up @@ -1136,7 +1136,7 @@ class DeleteBackgroundImagesService {
classDeleteBackgroundImg=`${PREFIX}delete-background-img`;
classDeleteForegroundImg=`${PREFIX}delete-foreground-img`;
classSpanImage=`${PREFIX}delete-background-images__span`;
styleDeleteBackgroundImages=`\n\t\t.${this.classDeleteBackgroundImg},\n\t\t.${this.classDeleteBackgroundImg}:before,\n\t\t.${this.classDeleteBackgroundImg}:after {\n\t\t\tbackground-image: none !important;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t}\n\t`;
styleDeleteBackgroundImages=`\n\t\t.${this.classDeleteBackgroundImg},\n\t\t.${this.classDeleteBackgroundImg}:before,\n\t\t.${this.classDeleteBackgroundImg}:after {\n\t\t\tbackground-image: none !important;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t}\n\n\t\t.${this.classDeleteBackgroundImg} * {\n\t\t\tcolor: black;\n\t\t}\n\t`;
styleDeleteForegroundImages=`\n\t\t.${this.classSpanImage} {\n\t\t\tfont-size: 1rem;\n\t\t}\n\n\t\t.${this.classDeleteForegroundImg} {\n\t\t\tvisibility: hidden !important;\n\t\t}\n\t`;
styleDeleteTransparencyEffects=`\n\t\t*, *::before, *::after {\n\t\t\topacity: 1 !important;\n\t\t\tfilter: none !important\n\t\t}\n\t`;
constructor() {
Expand Down Expand Up @@ -2979,7 +2979,7 @@ customElements.define("app-capital-letters", CapitalLettersComponent);

const tmplClearlyLinks = document.createElement("template");

tmplClearlyLinks.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n\t<app-btn-modal class="d-none"></app-btn-modal>\n</div>\n`;
tmplClearlyLinks.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n</div>\n`;

class ClearlyLinksComponent extends AbstractSetting {
constructor() {
Expand Down Expand Up @@ -3235,7 +3235,7 @@ customElements.define("app-scroll-aspect", ScrollAspectComponent);

const tmplScrollType = document.createElement("template");

tmplScrollType.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n\t<app-btn-modal class="d-none"></app-btn-modal>\n</div>\n`;
tmplScrollType.innerHTML = `\n<div class="d-flex align-items-center gap-3 h-100">\n\t<app-btn-setting></app-btn-setting>\n</div>\n`;

class ScrollTypeComponent extends AbstractSetting {
constructor() {
Expand Down Expand Up @@ -3391,7 +3391,7 @@ customElements.define("app-text-color", TextColorComponent);

const btnModalLayout = document.createElement("template");

btnModalLayout.innerHTML = `\n\t<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice"></button>`;
btnModalLayout.innerHTML = `\n\t<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice">\n\t</button>`;

class BtnModalComponent extends HTMLElement {
static observedAttributes=[ "data-name", "data-disabled" ];
Expand Down
4 changes: 2 additions & 2 deletions docs/js/toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/toolbar.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Press escape to close the mask."
},
"setting_marginAlign": {
"message": "Margin & Alignment"
"message": "Margin & Landmark"
},
"setting_marginAlign_instruction": {
"message": "To anchor reading to the left"
Expand Down
2 changes: 1 addition & 1 deletion src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"message": "Appuyer sur échap pour fermer le masque."
},
"setting_marginAlign": {
"message": "Marge et alignement"
"message": "Marge et repères"
},
"setting_marginAlign_instruction": {
"message": "Pour ancrer la lecture à gauche"
Expand Down
4 changes: 4 additions & 0 deletions src/app/services/settings/delete-background-images.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class DeleteBackgroundImagesService {
background-color: white;
color: black;
}
.${this.classDeleteBackgroundImg} * {
color: black;
}
`;

styleDeleteForegroundImages = `
Expand Down
3 changes: 2 additions & 1 deletion src/app/shared/btn-modal.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const btnModalLayout: HTMLTemplateElement = document.createElement('template');
btnModalLayout.innerHTML = `
<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice"></button>`;
<button type="button" class="btn btn-primary pe-4 sc-btn-modal" data-i18n="moreChoice">
</button>`;

class BtnModalComponent extends HTMLElement {
static observedAttributes = ['data-name', 'data-disabled'];
Expand Down
1 change: 0 additions & 1 deletion src/app/shared/settings/clearly-links.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const tmplClearlyLinks: HTMLTemplateElement = document.createElement('template')
tmplClearlyLinks.innerHTML = `
<div class="d-flex align-items-center gap-3 h-100">
<app-btn-setting></app-btn-setting>
<app-btn-modal class="d-none"></app-btn-modal>
</div>
`;

Expand Down
1 change: 0 additions & 1 deletion src/app/shared/settings/scroll-type.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const tmplScrollType: HTMLTemplateElement = document.createElement('template');
tmplScrollType.innerHTML = `
<div class="d-flex align-items-center gap-3 h-100">
<app-btn-setting></app-btn-setting>
<app-btn-modal class="d-none"></app-btn-modal>
</div>
`;

Expand Down
8 changes: 4 additions & 4 deletions src/assets/json/modes-of-use.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.20",
"version": "1.0.21",
"selectedMode": "facilePlus",
"modes": [
{
Expand Down Expand Up @@ -134,7 +134,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -682,7 +682,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 0,
"isTool": false,
"order": null
Expand Down Expand Up @@ -870,7 +870,7 @@
},
{
"scrollType": {
"values": "noModifications,scrollOnMouseover",
"values": "noModifications,scrollOnClick,scrollOnMouseover",
"valueSelected": 1,
"isTool": false,
"order": null
Expand Down
Loading

0 comments on commit 0c8a67c

Please sign in to comment.