Skip to content

Commit

Permalink
fix: handle tag switching for non-ASCII characters
Browse files Browse the repository at this point in the history
  • Loading branch information
zxc88645 committed Dec 11, 2024
1 parent 93c2716 commit db8f121
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/forms/src/Components/Tabs/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Tab extends Component implements CanConcealComponents
final public function __construct(string $label)
{
$this->label($label);
$this->id(Str::slug($label));
$this->id(Str::slug(Str::transliterate($label, strict: true)));
}

public static function make(string $label): static
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/Components/Wizard/Step.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Step extends Component implements CanConcealComponents
final public function __construct(string $label)
{
$this->label($label);
$this->id(Str::slug($label));
$this->id(Str::slug(Str::transliterate($label, strict: true)));
}

public static function make(string $label): static
Expand Down
2 changes: 1 addition & 1 deletion packages/infolists/src/Components/Tabs/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Tab extends Component
final public function __construct(string $label)
{
$this->label($label);
$this->id(Str::slug($label));
$this->id(Str::slug(Str::transliterate($label, strict: true)));
}

public static function make(string $label): static
Expand Down

0 comments on commit db8f121

Please sign in to comment.