Skip to content
代码片段 群组 项目
提交 ec45765b 编辑于 作者: Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt
浏览文件

Merge branch 'thutterer/paper-cut-haml-broadcast-notification-styles' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -46,3 +46,7 @@ ...@@ -46,3 +46,7 @@
min-height: 34px; min-height: 34px;
} }
} }
.gl-broadcast-message-content p:last-child {
margin: 0;
}
...@@ -19,21 +19,22 @@ ...@@ -19,21 +19,22 @@
icon: 'close', icon: 'close',
size: :small, size: :small,
button_options: { class: 'gl-close-btn-color-inherit gl-broadcast-message-dismiss js-dismiss-current-broadcast-notification', 'aria-label': _('Close'), data: { id: message.id, expire_date: message.ends_at.iso8601 } }, button_options: { class: 'gl-close-btn-color-inherit gl-broadcast-message-dismiss js-dismiss-current-broadcast-notification', 'aria-label': _('Close'), data: { id: message.id, expire_date: message.ends_at.iso8601 } },
icon_classes: 'gl-mx-3! gl-text-white') icon_classes: 'gl-text-white')
- else - else
- notification_class = "js-broadcast-notification-#{message.id}" - notification_class = "js-broadcast-notification-#{message.id}"
- notification_class << ' preview' if preview - notification_class << ' preview' if preview
.broadcast-message.broadcast-notification-message.mt-2{ role: "alert", class: notification_class, data: { qa_selector: 'broadcast_notification_container' } } .gl-broadcast-message.broadcast-notification-message.gl-mt-3{ role: "alert", class: notification_class, data: { qa_selector: 'broadcast_notification_container' } }
= sprite_icon(icon_name, css_class: 'vertical-align-text-top') .gl-broadcast-message-content
- if message.message.present? .gl-broadcast-message-icon
%h2.gl-sr-only = sprite_icon(icon_name, css_class: 'vertical-align-text-top')
= s_("Admin message") - if message.message.present?
= render_broadcast_message(message) %h2.gl-sr-only
- else = s_("Admin message")
= yield = render_broadcast_message(message)
- else
= yield
- if !preview - if !preview
= render Pajamas::ButtonComponent.new(variant: :link, = render Pajamas::ButtonComponent.new(category: :tertiary,
icon: 'close', icon: 'close',
size: :small, size: :small,
button_options: { class: 'js-dismiss-current-broadcast-notification', 'aria-label': _('Close'), data: { id: message.id, expire_date: message.ends_at.iso8601, qa_selector: 'close_button' } }, button_options: { class: 'js-dismiss-current-broadcast-notification', 'aria-label': _('Close'), data: { id: message.id, expire_date: message.ends_at.iso8601, qa_selector: 'close_button' } })
icon_classes: 'gl-mx-3! gl-text-gray-700')
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册