Commit 0af85c4f authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/mrWidgetExtensionBaseAccessibility' into 'master'

Updated MR extension container accessibility regions

See merge request gitlab-org/gitlab!71305
parents 9663b69b f15731c9
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
</script> </script>
<template> <template>
<section class="media-section mr-widget-border-top" data-testid="widget-extension"> <section class="media-section" data-testid="widget-extension">
<div class="media gl-p-5"> <div class="media gl-p-5">
<status-icon <status-icon
:name="$options.name" :name="$options.name"
......
import { __ } from '~/locale';
import { registeredExtensions } from './index'; import { registeredExtensions } from './index';
export default { export default {
...@@ -12,8 +13,23 @@ export default { ...@@ -12,8 +13,23 @@ export default {
if (extensions.length === 0) return null; if (extensions.length === 0) return null;
return h('div', {}, [ return h(
...extensions.map((extension) => 'div',
{
attrs: {
role: 'region',
'aria-label': __('Merge request reports'),
},
},
[
h(
'ul',
{
class: 'gl-p-0 gl-m-0 gl-list-style-none',
},
[
...extensions.map((extension, index) =>
h('li', { attrs: { class: index > 0 && 'mr-widget-border-top' } }, [
h( h(
{ ...extension }, { ...extension },
{ {
...@@ -28,7 +44,11 @@ export default { ...@@ -28,7 +44,11 @@ export default {
}, },
}, },
), ),
]),
),
],
), ),
]); ],
);
}, },
}; };
...@@ -21350,6 +21350,9 @@ msgstr "" ...@@ -21350,6 +21350,9 @@ msgstr ""
msgid "Merge request events" msgid "Merge request events"
msgstr "" msgstr ""
msgid "Merge request reports"
msgstr ""
msgid "Merge request was scheduled to merge after pipeline succeeds" msgid "Merge request was scheduled to merge after pipeline succeeds"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment