-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Header): adding prop "sticky" (#730)
This pull request introduces a new `sticky` property to the `Header` component and updates relevant stories and tests to accommodate this new feature. ### New Feature: Sticky Header * [`packages/ui-header/src/components/Header/Header.tsx`](diffhunk://#diff-0577ff167517db4abebe26dc9be31c541bb6e4df57ff143a7eac6bf46c836df3R14): Added a `sticky` property to the `Header` component and applied the appropriate CSS classes when `sticky` is true. [[1]](diffhunk://#diff-0577ff167517db4abebe26dc9be31c541bb6e4df57ff143a7eac6bf46c836df3R14) [[2]](diffhunk://#diff-0577ff167517db4abebe26dc9be31c541bb6e4df57ff143a7eac6bf46c836df3R27) * [`packages/documentation/src/Components/Header.stories.tsx`](diffhunk://#diff-4db53dc21ffe9e211fb22d1279b74c1b03a721abb0bf8499925445ed290ca158R39): Updated the story to include the new `sticky` property for the `Header` component. * [`packages/ui-header/src/components/Header/__tests__/Header.test.tsx`](diffhunk://#diff-e1d425a794111d2a786df6d8eb6fe5e3a1e8db4e8518f9bc328ec653495e47faR115-R138): Added a test case to verify that the `Header` component renders correctly with the `sticky` property.
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 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 |
---|---|---|
|
@@ -36,6 +36,7 @@ export default { | |
raw: false, | ||
noColors: false, | ||
mode: "system", | ||
sticky: false, | ||
}, | ||
argTypes: { | ||
mode: { | ||
|
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