Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/components/enterprise_edition/banner_component.sass
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,8 @@ $op-enterprise-banner-fixed-height-large: 320px
&--content
padding: var(--base-size-6) var(--base-size-8)

&--upsell-buttons
gap: var(--base-size-8)

&--dismiss
margin-left: var(--controlStack-medium-gap-condensed)
9 changes: 7 additions & 2 deletions app/components/enterprise_edition/upsell_buttons_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,19 @@ def initialize(feature_key, show_buy_now: false, **system_arguments)

@system_arguments = system_arguments
@system_arguments[:align_items] ||= :center
@system_arguments[:flex_wrap] ||= :wrap
@system_arguments[:classes] = class_names(
@system_arguments[:classes],
"op-enterprise-banner--upsell-buttons"
)
@feature_key = feature_key
@show_buy_now = show_buy_now
end

def call
flex_layout(**@system_arguments) do |flex|
buttons.each_with_index do |button, i|
flex.with_column(ml: (i == 0 ? 0 : 2)) do
buttons.each do |button|
flex.with_column do
button
end
end
Expand Down
Loading