Skip to content

Commit

Permalink
refactor(table): helper cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
teenwolfblitzer committed Nov 10, 2022
1 parent d681bc4 commit 0411d30
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/lib/sage_rails/app/helpers/sage_table_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ def sage_table_wrapper_classes(table, is_responsive)
def sage_table_caption_classes(table)
table_caption_classlist = "sage-table__caption"

if table.caption_side
table_caption_classlist << " sage-table__caption--#{table.caption_side}"
end
table_caption_classlist << " sage-table__caption--#{table.caption_side}" if table.caption_side

return table_caption_classlist
end
Expand All @@ -256,10 +254,10 @@ def sage_table_row_classes(table)
end

def sage_table_cell_classes(table)
table_cell_classlist = ""
table_cell_classlist = "sage-table-cell"

if table.has_borders
table_cell_classlist << "sage-table-cell--borders"
table_cell_classlist << " sage-table-cell--borders"
end

return table_cell_classlist
Expand Down

0 comments on commit 0411d30

Please sign in to comment.