Commit 473d36d1 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch 'fixed-dropdown-hover-styles' into 'master'

Fixed dropdown hover styles

Closes #64330 and #64340

See merge request gitlab-org/gitlab-ce!30534
parents e787676b 91fff39e
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
</script> </script>
<template> <template>
<div class="form-group"> <div class="confidential-merge-request-fork-group form-group">
<label>{{ __('Project') }}</label> <label>{{ __('Project') }}</label>
<div> <div>
<dropdown <dropdown
...@@ -126,6 +126,14 @@ export default { ...@@ -126,6 +126,14 @@ export default {
{{ __('No forks available to you.') }}<br /> {{ __('No forks available to you.') }}<br />
<span v-html="noForkText"></span> <span v-html="noForkText"></span>
</template> </template>
<gl-link
:href="helpPagePath"
class="w-auto p-0 d-inline-block text-primary bg-transparent"
target="_blank"
>
<span class="sr-only">{{ __('Read more') }}</span>
<i class="fa fa-question-circle" aria-hidden="true"></i>
</gl-link>
</p> </p>
</div> </div>
</div> </div>
......
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
margin-top: 11px; margin-top: 11px;
} }
.dropdown-toggle { .dropdown-toggle,
.confidential-merge-request-fork-group .dropdown-toggle {
padding: 6px 8px 6px 10px; padding: 6px 8px 6px 10px;
background-color: $white-light; background-color: $white-light;
color: $gl-text-color; color: $gl-text-color;
...@@ -288,7 +289,7 @@ ...@@ -288,7 +289,7 @@
padding: 0 1px; padding: 0 1px;
a, a,
button:not(.dropdown-toggle,.ci-action-icon-container), button,
.menu-item { .menu-item {
@include dropdown-link; @include dropdown-link;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
exports[`Confidential merge request project form group component renders empty state when response is empty 1`] = ` exports[`Confidential merge request project form group component renders empty state when response is empty 1`] = `
<div <div
class="form-group" class="confidential-merge-request-fork-group form-group"
> >
<label> <label>
Project Project
...@@ -28,6 +28,23 @@ exports[`Confidential merge request project form group component renders empty s ...@@ -28,6 +28,23 @@ exports[`Confidential merge request project form group component renders empty s
</a> </a>
and set the forks visiblity to private. and set the forks visiblity to private.
</span> </span>
<gllink-stub
class="w-auto p-0 d-inline-block text-primary bg-transparent"
href="/help"
target="_blank"
>
<span
class="sr-only"
>
Read more
</span>
<i
aria-hidden="true"
class="fa fa-question-circle"
/>
</gllink-stub>
</p> </p>
</div> </div>
</div> </div>
...@@ -35,7 +52,7 @@ exports[`Confidential merge request project form group component renders empty s ...@@ -35,7 +52,7 @@ exports[`Confidential merge request project form group component renders empty s
exports[`Confidential merge request project form group component renders fork dropdown 1`] = ` exports[`Confidential merge request project form group component renders fork dropdown 1`] = `
<div <div
class="form-group" class="confidential-merge-request-fork-group form-group"
> >
<label> <label>
Project Project
...@@ -61,6 +78,23 @@ exports[`Confidential merge request project form group component renders fork dr ...@@ -61,6 +78,23 @@ exports[`Confidential merge request project form group component renders fork dr
</a> </a>
and set the forks visiblity to private. and set the forks visiblity to private.
</span> </span>
<gllink-stub
class="w-auto p-0 d-inline-block text-primary bg-transparent"
href="/help"
target="_blank"
>
<span
class="sr-only"
>
Read more
</span>
<i
aria-hidden="true"
class="fa fa-question-circle"
/>
</gllink-stub>
</p> </p>
</div> </div>
</div> </div>
......
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