Skip to content

Commit f1cc720

Browse files
committed
Cleans up styles
1 parent 0951be5 commit f1cc720

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

lib/protos/alert.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ def actions(...) = render Actions.new(...)
3737

3838
def theme
3939
{
40-
container: %W[
41-
alert
42-
#{style}
43-
]
40+
container: ["alert", style]
4441
}
4542
end
4643

lib/protos/chat_bubble/content.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ class Content < Component
88

99
STYLES = {
1010
default: "",
11-
primary: "chat-bubble-primary",
12-
secondary: "chat-bubble-secondary",
1311
accent: "chat-bubble-accent",
12+
error: "chat-bubble-error",
1413
info: "chat-bubble-info",
14+
neutral: "chat-bubble-neutral",
15+
primary: "chat-bubble-primary",
16+
secondary: "chat-bubble-secondary",
1517
success: "chat-bubble-success",
16-
warning: "chat-bubble-warning",
17-
error: "chat-bubble-error",
18-
neutral: "chat-bubble-neutral"
18+
warning: "chat-bubble-warning"
1919
}.freeze
2020

2121
option :type,

lib/protos/status.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ module Protos
44
class Status < Component
55
STYLES = {
66
default: "",
7+
accent: "status-accent",
8+
error: "status-error",
9+
info: "status-info",
10+
neutral: "status-neutral",
711
primary: "status-primary",
812
secondary: "status-secondary",
9-
accent: "status-accent",
1013
success: "status-success",
11-
error: "status-error",
12-
warning: "status-warning",
13-
info: "status-info"
14+
warning: "status-warning"
1415
}.freeze
1516

1617
Sizes = Types::Coercible::Symbol.enum(:xs, :sm, :md, :lg, :xl)

lib/protos/tabs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class Tabs < Component
2222
)
2323

2424
STYLES = {
25+
default: "",
2526
bordered: "tabs-bordered",
2627
boxed: "tabs-boxed",
27-
lifted: "tabs-lifted",
28-
default: ""
28+
lifted: "tabs-lifted"
2929
}.freeze
3030

3131
SIZES = {

0 commit comments

Comments
 (0)