Skip to content

Commit

Permalink
feat: Remove testid from AsComponent since it's passed in args (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilLelonek authored Mar 31, 2023
1 parent 2e0b2ed commit 983f4fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/moon/design/button.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ defmodule Moon.Design.Button do
@class
])}
on_click={@on_click}
testid={@testid}
attrs={
disabled: @disabled,
type: @type,
form: @form,
"data-size": @size,
"data-testid": @testid,
":values": @values
}
>
Expand Down
2 changes: 1 addition & 1 deletion lib/moon/design/button/icon_button.ex
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ defmodule Moon.Design.Button.IconButton do
@class
])}
on_click={@on_click}
testid={@testid}
attrs={
disabled: @disabled,
type: @type,
form: @form,
"data-size": @size,
"data-testid": @testid,
":values": @values
}
>
Expand Down
4 changes: 1 addition & 3 deletions lib/moon/design/menu_item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ defmodule Moon.Design.MenuItem do
}
on_click={@on_click}
values={is_selected: !@is_selected}
attrs={
"data-testid": @testid
}
testid={@testid}
>
<#slot context_put={is_selected: @is_selected}>
<Lego.Title {=@title} :if={@title && !@text} />
Expand Down

0 comments on commit 983f4fb

Please sign in to comment.