-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(component): use 1st letter of text in collapsed Sidebar.Item with…
… no icon (#338) * fix(component): use 1st letter of text in collapsed `Sidebar.Item` with no `icon` resolve #81 * feat(theme): add `sidebar.item.collapsed.noIcon` to theme Classes placed here are applied when you create `Sidebar.Item` with an `icon` and collapse the `Sidebar`. * test(helper): update `mergeDeep` tests to more closely reflect actual usage We only use `mergeDeep` in one scenario currently: combine the default `<Flowbite theme>` with custom overrides provided in `<Flowbite theme={{ theme }}>`. The default theme contains all keys. We only need to test one scenario: given one object with all the keys, and a second object with any of those keys, use the second (overriding) object's values. * refactor(component): explicitly type `mergeDeep` for `FlowbiteTheme`
- Loading branch information
1 parent
a9a9a87
commit 103d173
Showing
6 changed files
with
55 additions
and
92 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