From c7629bf3bb8b4883f0755bce22290adc1ea1dd4f Mon Sep 17 00:00:00 2001 From: christophe-g Date: Fri, 11 Jan 2019 10:03:27 +0100 Subject: [PATCH 1/9] improve label contrast --- ud-stepper.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ud-stepper.html b/ud-stepper.html index 1a67244..599e7ba 100644 --- a/ud-stepper.html +++ b/ud-stepper.html @@ -58,7 +58,7 @@ flex: 1; top: 36px; height: 1px; - background-color: rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.3); } :host(:not([vertical])) .header:not(:first-of-type)::before { @@ -68,7 +68,7 @@ flex: 1; top: 36px; height: 1px; - background-color: rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.3); } .header .label { @@ -208,7 +208,7 @@ left: 6px; margin-top: -10px; margin-bottom: -16px; - background-color: rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.3); } :host([vertical]) .header .label { From 763a2dc29468366ae1ed44f557988c6995e0d5cb Mon Sep 17 00:00:00 2001 From: christophe-g Date: Fri, 11 Jan 2019 10:09:23 +0100 Subject: [PATCH 2/9] typo --- ud-step.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ud-step.html b/ud-step.html index 75c71a5..95594e6 100644 --- a/ud-step.html +++ b/ud-step.html @@ -135,7 +135,7 @@ }, /* - * `alwaysSelectable` true to allow the step to always be selectable, even if linead and completed + * `alwaysSelectable` true to allow the step to always be selectable, even if linear and completed */ alwaysSelectable: { type: Boolean, From 0baf15f33c36cbcf84b1763a990a3d9e563d59dd Mon Sep 17 00:00:00 2001 From: christophe-g Date: Tue, 26 May 2020 16:46:08 +0200 Subject: [PATCH 3/9] added background color on focus button --- ud-step.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ud-step.html b/ud-step.html index 95594e6..9c97dcc 100644 --- a/ud-step.html +++ b/ud-step.html @@ -55,6 +55,12 @@ color: rgba(0, 0, 0, 0.50); background-color: transparent; } + + paper-button:focus, + #actions ::slotted(paper-button:focus) { + background-color: var(--google-grey-300); + + }
From 7d5bda73b118ae688104274de3f049cad7548278 Mon Sep 17 00:00:00 2001 From: christophe-g Date: Wed, 27 May 2020 17:11:39 +0200 Subject: [PATCH 4/9] Make stepper accessible As the stepper inherits from IronMenubarBehavior, it can be navigated through keyboard. Role of header is `tablist`, each stepper button has a `tab` role. When a step is completed, `aria-checked` of its corresponding button is set to true. Steps not accessible have `aria-disabled` set to true. `aria-invalid` is set to true when a step has an error. --- bower.json | 4 +- demo/index.html | 4 +- ud-step.html | 13 +++-- ud-stepper.html | 150 +++++++++++++++++++++++++++++++++++------------- 4 files changed, 122 insertions(+), 49 deletions(-) diff --git a/bower.json b/bower.json index 565a23e..4e4622e 100644 --- a/bower.json +++ b/bower.json @@ -1,13 +1,13 @@ { "name": "ud-stepper", - "version": "0.5.0", + "version": "0.6.0", "description": "Material Design Stepper", "main": "ud-stepper.html", "dependencies": { "polymer": "Polymer/polymer#^2.0.0", "paper-styles": "^2.0.0", "neon-animation": "^2.2.0", - "iron-selector": "^2.0.1", + "iron-menu-behavior": "^2.0.1", "paper-button": "^2.0.0", "iron-iconset-svg": "^2.1.0", "iron-icon": "^2.0.1" diff --git a/demo/index.html b/demo/index.html index 293eb70..612767d 100644 --- a/demo/index.html +++ b/demo/index.html @@ -66,9 +66,10 @@

Linear Stepper