New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/timeline vertical #1224
base: main
Are you sure you want to change the base?
Fix/timeline vertical #1224
Conversation
make root.base independent from component orientation, introduce orientation-specific classes fix themesberg#1196
f484201
to
eeca82c
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good overall, just those 2 comments needs fixing
@@ -14,6 +14,8 @@ import type { FlowbiteTimelineTitleTheme } from './TimelineTitle'; | |||
export interface FlowbiteTimelineContentTheme { | |||
root: { | |||
base: string; | |||
vertical?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are redundant, can be removed
@@ -14,6 +14,8 @@ import type { FlowbiteTimelineTitleTheme } from './TimelineTitle'; | |||
export interface FlowbiteTimelineContentTheme { | |||
root: { | |||
base: string; | |||
vertical?: string; | |||
horizontal?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Deployment failed with the following error:
|
Fixed the problem with vertical-oriented
<Timeline.Content />
component style. Theroot.base
class theme prop is now independent on orientation. The optionalroot.vertical
androot.horizontal
props were introduced to make orientation-specific style changes.Fix #1196
If there are breaking API changes - like adding or removing props, or changing the structure of the theme - describe them, and provide steps to update existing code.
interface FlowbiteTimelineContentTheme
has been changed. The theme now supports optionalroot.vertical
androot.horizontal
props.