Skip to content

Commit 06fffe4

Browse files
authored
Merge pull request #2894 from AlchemyCMS/deprecate-float-positioning
Deprecate float positioning in File and Picture ingredients
2 parents 70b0d49 + c477124 commit 06fffe4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/views/alchemy/admin/ingredients/_file_fields.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
collection: css_classes,
88
include_blank: Alchemy.t('None') %>
99
<%- else -%>
10+
<% Alchemy::Deprecation.warn %(Float positioning in File ingredients is deprecated. If you rely on them, please use `css_classes` in your "#{ingredient.role}" settings instead.) %>
1011
<%= f.input :css_class,
1112
label: Alchemy.t(:position_in_text),
1213
collection: [

app/views/alchemy/admin/ingredients/_picture_fields.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
collection: ingredient.settings[:css_classes],
1414
include_blank: Alchemy.t('None') %>
1515
<%- else -%>
16+
<% Alchemy::Deprecation.warn %(Float positioning in Picture ingredients is deprecated. If you rely on them, please use `css_classes` in your "#{ingredient.role}" settings instead.) %>
1617
<%= f.input :css_class,
1718
label: Alchemy.t(:position_in_text),
1819
collection: [

0 commit comments

Comments
 (0)