Commit 17bc3585 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'tor/a11y/sidebar-attention-requests' into 'master'

Swap sidebar attention requests source order

See merge request gitlab-org/gitlab!83552
parents dafd7ccc 5a762ecc
...@@ -110,22 +110,16 @@ export default { ...@@ -110,22 +110,16 @@ export default {
:class="{ :class="{
'user-item': !showVerticalList, 'user-item': !showVerticalList,
'gl-display-inline-block': !showVerticalList, 'gl-display-inline-block': !showVerticalList,
'gl-display-flex': showVerticalList, 'gl-display-grid gl-align-items-center': showVerticalList,
'gl-mb-3': index !== users.length - 1 && showVerticalList, 'gl-mb-3': index !== users.length - 1 && showVerticalList,
}" }"
class="assignee-attention-grid"
> >
<attention-requested-toggle
v-if="showVerticalList"
:user="user"
type="assignee"
class="gl-mr-2"
@toggle-attention-requested="toggleAttentionRequested"
/>
<assignee-avatar-link <assignee-avatar-link
:user="user" :user="user"
:issuable-type="issuableType" :issuable-type="issuableType"
:tooltip-has-name="!showVerticalList" :tooltip-has-name="!showVerticalList"
class="gl-word-break-word" class="gl-grid-column-2 gl-grid-row-1 gl-word-break-word"
> >
<div <div
v-if="showVerticalList" v-if="showVerticalList"
...@@ -136,6 +130,13 @@ export default { ...@@ -136,6 +130,13 @@ export default {
<span>@{{ user.username }}</span> <span>@{{ user.username }}</span>
</div> </div>
</assignee-avatar-link> </assignee-avatar-link>
<attention-requested-toggle
v-if="showVerticalList"
:user="user"
type="assignee"
class="gl-grid-column-1 gl-grid-row-1 gl-mr-2"
@toggle-attention-requested="toggleAttentionRequested"
/>
</div> </div>
</div> </div>
<div v-if="renderShowMoreSection" class="user-list-more gl-hover-text-blue-800"> <div v-if="renderShowMoreSection" class="user-list-more gl-hover-text-blue-800">
......
...@@ -95,27 +95,27 @@ export default { ...@@ -95,27 +95,27 @@ export default {
v-for="(user, index) in users" v-for="(user, index) in users"
:key="user.id" :key="user.id"
:class="{ 'gl-mb-3': index !== users.length - 1 }" :class="{ 'gl-mb-3': index !== users.length - 1 }"
class="gl-display-grid gl-align-items-center reviewer-attention-grid"
data-testid="reviewer" data-testid="reviewer"
class="gl-display-flex"
> >
<attention-requested-toggle
v-if="glFeatures.mrAttentionRequests"
:user="user"
type="reviewer"
class="gl-mr-2"
@toggle-attention-requested="toggleAttentionRequested"
/>
<reviewer-avatar-link <reviewer-avatar-link
:user="user" :user="user"
:root-path="rootPath" :root-path="rootPath"
:issuable-type="issuableType" :issuable-type="issuableType"
class="gl-word-break-word gl-mr-2" class="gl-grid-column-2 gl-grid-row-1 gl-word-break-word gl-mr-2"
> >
<div class="gl-ml-3 gl-line-height-normal gl-display-grid"> <div class="gl-ml-3 gl-line-height-normal gl-display-grid">
<span>{{ user.name }}</span> <span>{{ user.name }}</span>
<span>@{{ user.username }}</span> <span>@{{ user.username }}</span>
</div> </div>
</reviewer-avatar-link> </reviewer-avatar-link>
<attention-requested-toggle
v-if="glFeatures.mrAttentionRequests"
:user="user"
type="reviewer"
class="gl-grid-column-1 gl-grid-row-1 gl-mr-2"
@toggle-attention-requested="toggleAttentionRequested"
/>
<gl-icon <gl-icon
v-if="user.approved" v-if="user.approved"
v-gl-tooltip.left v-gl-tooltip.left
......
...@@ -226,3 +226,23 @@ ...@@ -226,3 +226,23 @@
.edit-link { .edit-link {
margin-right: -$gl-spacing-scale-2; margin-right: -$gl-spacing-scale-2;
} }
.reviewer-attention-grid,
.assignee-attention-grid {
grid-template-columns: min-content 1fr min-content;
}
/* TODO: These are non-standardized classes, and should be moved into gitlab-ui
Please see: https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1780
*/
.gl-grid-column-1 {
grid-column: 1;
}
.gl-grid-row-1 {
grid-row: 1;
}
.gl-grid-column-2 {
grid-column: 2;
}
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