Skip to content

Commit

Permalink
fix(components): remove exessive usage of AdditionalAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondinho committed Jul 19, 2024
1 parent 65c34cb commit dd016bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/LumexUI/Components/Accordion/LumexAccordionItem.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

<LumexComponent Class="@RootClass"
Style="@RootStyle"
@attributes="@AdditionalAttributes"
data-slot="root"
data-opened="@_expanded">
data-opened="@_expanded"
@attributes="@AdditionalAttributes">
<h2 class="@HeadingClass" data-slot="heading">
<button class="@TriggerClass"
type="button"
<button type="button"
class="@TriggerClass"
disabled="@_disabled"
data-slot="trigger"
@onclick="@ToggleExpansionAsync">
Expand Down Expand Up @@ -66,8 +66,8 @@
</LumexComponent>

@if( Context.Owner.ShowDividers &&
!Context.IsLastItem( this ) &&
Context.Owner.Variant is not AccordionVariant.Splitted )
!Context.IsLastItem( this ) &&
Context.Owner.Variant is not AccordionVariant.Splitted )
{
<LumexDivider />
}
2 changes: 0 additions & 2 deletions src/LumexUI/Components/Checkbox/LumexCheckbox.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
value="@true"
checked="@CurrentValue"
disabled="@GetDisabledState()"
@ref="@ElementReference"
@attributes="@AdditionalAttributes"
@onchange="@OnChangeAsync" />
</span>

Expand Down
2 changes: 0 additions & 2 deletions src/LumexUI/Components/Switch/LumexSwitch.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
value="@true"
checked="@CurrentValue"
disabled="@GetDisabledState()"
@ref="@ElementReference"
@attributes="@AdditionalAttributes"
@onchange="@OnChangeAsync" />
</span>

Expand Down

0 comments on commit dd016bb

Please sign in to comment.