-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Improve theme switcher UX (#3497)
Because: * Current behaviour is inconsistent and confusing This PR: * Moves theme switcher out of dropdown menu when logged in * Adjusts position to be consistent when logged in or out * Tidy broken Lookbook previews due to removal of GA tracking
- Loading branch information
1 parent
1fdb7c8
commit a45530c
Showing
6 changed files
with
11 additions
and
16 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
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
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
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,9 +1,7 @@ | ||
<%= turbo_stream.update "theme_switcher" do %> | ||
<%= render Theme::SwitcherComponent.new(current_theme: current_theme, type: current_user ? :default : :icon_only) %> | ||
<%= render Theme::SwitcherComponent.new(current_theme: current_theme, type: :icon_only) %> | ||
<% end %> | ||
<%= turbo_stream.update "theme_switcher_mobile" do %> | ||
<%= render Theme::SwitcherComponent.new(current_theme: current_theme, type: :mobile) %> | ||
<% end %> | ||
|
||
|