Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2024-10-10 18:15:04 +00:00
parent 1252510698
commit 4965365aeb
212 changed files with 2548 additions and 870 deletions

View File

@ -2,15 +2,15 @@
- if callout?
= callout
.gl-flex.gl-justify-between.gl-items-start.gl-gap-x-3.gl-pt-5
.gl-shrink-0.gl-px-2.gl-py-0.-gl-mr-3.sm:gl-p-2.sm:gl-mr-0
= render Pajamas::ButtonComponent.new(category: :tertiary, size: :small, icon: 'chevron-lg-right', icon_classes: '!-gl-mx-2', button_text_classes: 'gl-sr-only', button_options: @button_options.merge(class: 'settings-toggle js-settings-toggle', 'aria-label': aria_label)) do
= button_text
.gl-grow
%h2{ class: title_classes }
= heading || @heading
- if description || @description
%p.gl-text-subtle.gl-m-0
= description || @description
.gl-shrink-0.gl-px-2
= render Pajamas::ButtonComponent.new(button_options: @button_options.merge(class: 'gl-min-w-12 js-settings-toggle')) do
= button_text
.settings-content
.gl-mt-5
.gl-pl-7.sm:gl-pl-8.gl-mt-5
= body

View File

@ -41,5 +41,9 @@ module Layouts
def button_text
@expanded ? _('Collapse') : _('Expand')
end
def aria_label
@expanded ? "#{_('Collapse')} #{@heading}" : "#{_('Expand')} #{@heading}"
end
end
end