From: nsedrickm Date: Sat, 23 Jul 2022 18:38:01 +0000 (+0100) Subject: mgr/dashboard: Improve level A accessibility for progress bars X-Git-Tag: v18.0.0~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25b9d010b1528ff1b277b028ed76a7cca3ac507f;p=ceph.git mgr/dashboard: Improve level A accessibility for progress bars Add titles for usage bars so that they can be picked up by screenreaders Fixes: https://tracker.ceph.com/issues/56008 Signed-off-by: nsedrickm --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html index c1d33d8e0d24..64011a5263e9 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html @@ -32,7 +32,8 @@ + [used]="row.used" + [title]="row.pool_name"> - diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.html index bd568a9107ea..720559bdb7d8 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.html @@ -53,6 +53,7 @@ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html index 0602a4e59c82..7068744e9f02 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html @@ -17,11 +17,15 @@
{{ usedPercentage | number: '1.0-' + decimals }}%
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts index 203f2c9e05d9..4877e891e1f1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts @@ -22,6 +22,8 @@ export class UsageBarComponent implements OnChanges { decimals = 0; @Input() calculatePerc = true; + @Input() + title = $localize`usage`; usedPercentage: number; freePercentage: number; diff --git a/src/pybind/mgr/dashboard/frontend/src/styles/defaults/_bootstrap-defaults.scss b/src/pybind/mgr/dashboard/frontend/src/styles/defaults/_bootstrap-defaults.scss index c2f1cf2992e1..a4cd2abf24c4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/styles/defaults/_bootstrap-defaults.scss +++ b/src/pybind/mgr/dashboard/frontend/src/styles/defaults/_bootstrap-defaults.scss @@ -104,6 +104,7 @@ $nav-tabs-margin-bottom: 1rem !default; $tooltip-color: $white !default; $tooltip-bg: $body-color !default; +$tooltip-opacity: 1 !default; // Misc