-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor components to use ID-based event listeners instead of onclick for better maintainability
- Loading branch information
1 parent
9f6fdf8
commit e97d545
Showing
3 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="sidebar-button-wrapper flex items-center pl-2 pr-4 open"> | ||
<button class="sidebar-toggle-button open dark:fill-gray-200 dark:hover:fill-white" title="Open sidebar menu" onClick="showSidebar()"> | ||
<div id="sidebar-toggle-button" class="sidebar-button-wrapper flex items-center pl-2 pr-4 open"> | ||
<button class="sidebar-toggle-button open dark:fill-gray-200 dark:hover:fill-white" title="Open sidebar menu"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg> | ||
</button> | ||
<button class="sidebar-toggle-button close dark:fill-gray-200 dark:hover:fill-white" title="Close sidebar menu" onClick="hideSidebar()"> | ||
<button class="sidebar-toggle-button close dark:fill-gray-200 dark:hover:fill-white" title="Close sidebar menu"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg> | ||
</button> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
resources/views/components/navigation/theme-toggle-button.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters