Skip to content

Commit

Permalink
Add missing responsive classes comments for badge modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Sep 4, 2024
1 parent b14a437 commit d0723c5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions lib/phlexy_ui/badge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,61 @@ def view_template(&)
private

BADGE_MODIFIERS_MAP = {
# "sm:badge-neutral"
# "md:badge-neutral"
# "lg:badge-neutral"
neutral: "badge-neutral",
# "sm:badge-primary"
# "md:badge-primary"
# "lg:badge-primary"
primary: "badge-primary",
# "sm:badge-secondary"
# "md:badge-secondary"
# "lg:badge-secondary"
secondary: "badge-secondary",
# "sm:badge-accent"
# "md:badge-accent"
# "lg:badge-accent"
accent: "badge-accent",
# "sm:badge-ghost"
# "md:badge-ghost"
# "lg:badge-ghost"
ghost: "badge-ghost",
# "sm:badge-info"
# "md:badge-info"
# "lg:badge-info"
info: "badge-info",
# "sm:badge-success"
# "md:badge-success"
# "lg:badge-success"
success: "badge-success",
# "sm:badge-warning"
# "md:badge-warning"
# "lg:badge-warning"
warning: "badge-warning",
# "sm:badge-error"
# "md:badge-error"
# "lg:badge-error"
error: "badge-error",
# "sm:badge-outline"
# "md:badge-outline"
# "lg:badge-outline"
outline: "badge-outline",
# "sm:badge-lg"
# "md:badge-lg"
# "lg:badge-lg"
lg: "badge-lg",
# "sm:badge-md"
# "md:badge-md"
# "lg:badge-md"
md: "badge-md",
# "sm:badge-sm"
# "md:badge-sm"
# "lg:badge-sm"
sm: "badge-sm",
# "sm:badge-xs"
# "md:badge-xs"
# "lg:badge-xs"
xs: "badge-xs"
}.freeze
end
Expand Down

0 comments on commit d0723c5

Please sign in to comment.