Commit 72f5f769 authored by Daniel Schömer's avatar Daniel Schömer

Project Settings Operations h4 Expand/Collapse 2/5

Project Settings General Headers (h4 elements) expand/collapse on
mouse-click / tap, like using the Expand/Collapse button. Other h4
headers in other Project Settings pages do not expande/collapse on
mouse-click / tap, but only using the Expand/Collapse button. This may
seem inconsistent to the user.

The h4 headers of Project Settings General get the expand/collapse
behavior through classes settings-title, js-settings-toggle and
js-settings-toggle-trigger-only.

This MR adds classes settings-title, js-settings-toggle and
js-settings-toggle-trigger-only to the h4 headers in Project Settings
Operations Grafana authentication. This enables the expand/collapse
behavior on-click/on-tap for the h4 headers.
parent 57604146
...@@ -54,7 +54,9 @@ export default { ...@@ -54,7 +54,9 @@ export default {
<template> <template>
<section id="grafana" class="settings no-animate js-grafana-integration"> <section id="grafana" class="settings no-animate js-grafana-integration">
<div class="settings-header"> <div class="settings-header">
<h4 class="js-section-header"> <h4
class="js-section-header settings-title js-settings-toggle js-settings-toggle-trigger-only"
>
{{ s__('GrafanaIntegration|Grafana authentication') }} {{ s__('GrafanaIntegration|Grafana authentication') }}
</h4> </h4>
<gl-button class="js-settings-toggle">{{ __('Expand') }}</gl-button> <gl-button class="js-settings-toggle">{{ __('Expand') }}</gl-button>
......
---
title: Project Settings Operations header Grafana authentication expand/collapse on-click/on-tap
merge_request: 56270
author: Daniel Schömer
type: changed
...@@ -9,7 +9,7 @@ exports[`grafana integration component default state to match the default snapsh ...@@ -9,7 +9,7 @@ exports[`grafana integration component default state to match the default snapsh
class="settings-header" class="settings-header"
> >
<h4 <h4
class="js-section-header" class="js-section-header settings-title js-settings-toggle js-settings-toggle-trigger-only"
> >
Grafana authentication Grafana authentication
......
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