Commit 2761465d authored by Tom Quirk's avatar Tom Quirk

Increase button size to 18

parent d55b7466
......@@ -76,9 +76,9 @@ export default {
@click="toggleFeature"
>
<gl-loading-icon class="loading-icon" />
<span class="toggle-icon gl-bg-white">
<span class="toggle-icon">
<gl-icon
:size="16"
:size="18"
:name="toggleIcon"
:class="value ? 'gl-fill-blue-500' : 'gl-fill-gray-400'"
/>
......
......@@ -53,11 +53,9 @@
border-radius: 9px;
background: $white;
transition: all 0.2s ease;
& {
width: $default-icon-size;
height: $default-icon-size;
}
width: $default-icon-size;
height: $default-icon-size;
}
.loading-icon {
......
......@@ -19,8 +19,8 @@
"aria-label": _("Automatic certificate management using Let's Encrypt") }
= f.hidden_field :auto_ssl_enabled?, class: "js-project-feature-toggle-input"
%span.toggle-icon
= sprite_icon("status_success_borderless", size: 16, css_class: "gl-fill-blue-500 toggle-status-checked")
= sprite_icon("status_failed_borderless", size: 16, css_class: "gl-fill-gray-400 toggle-status-unchecked")
= sprite_icon("status_success_borderless", size: 18, css_class: "gl-fill-blue-500 toggle-status-checked")
= sprite_icon("status_failed_borderless", size: 18, css_class: "gl-fill-gray-400 toggle-status-unchecked")
%p.text-secondary.mt-3
- docs_link_url = help_page_path("user/project/pages/custom_domains_ssl_tls_certification/lets_encrypt_integration.md")
- docs_link_start = "<a href=\"%{docs_link_url}\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-nowrap\">".html_safe % { docs_link_url: docs_link_url }
......
......@@ -12,5 +12,5 @@
- if yield.present?
= yield
%span.toggle-icon
= sprite_icon('status_success_borderless', size: 16, css_class: 'gl-fill-blue-500 toggle-status-checked')
= sprite_icon('status_failed_borderless', size: 16, css_class: 'gl-fill-gray-400 toggle-status-unchecked')
= sprite_icon('status_success_borderless', size: 18, css_class: 'gl-fill-blue-500 toggle-status-checked')
= sprite_icon('status_failed_borderless', size: 18, css_class: 'gl-fill-gray-400 toggle-status-unchecked')
......@@ -32,7 +32,7 @@ describe('Toggle Button', () => {
it('renders input status icon', () => {
expect(vm.$el.querySelectorAll('span.toggle-icon').length).toEqual(1);
expect(vm.$el.querySelectorAll('svg.s16').length).toEqual(1);
expect(vm.$el.querySelectorAll('svg.s18').length).toEqual(1);
});
});
......
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