-
Notifications
You must be signed in to change notification settings - Fork 0
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
#48 - Add component: Navbar #114
base: main
Are you sure you want to change the base?
Conversation
@@ -4,7 +4,7 @@ defmodule BitstylesPhoenix.MixProject do | |||
def project do | |||
[ | |||
app: :bitstyles_phoenix, | |||
version: "2.3.0", |
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.
Why 6?
If the goal is to somehow match this to the bitstyles version then that is not needed. One can configure the bitstyles version used (also the default assumption) and there is no need for the versions to align.
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.
We also usually bump the version as part of the hex release.
assign(assigns, | ||
class: class, | ||
inner_block_class: inner_block_class, | ||
left_block_class: left_block_class |
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.
instead of this, I would forward the assigns on the left and inner slots and add the class there. You can find examples for how to do that in the sidebar
component or in most of the other places that work with single slots (see assigns_from_single_slot
)
@@ -0,0 +1,166 @@ | |||
defmodule BitstylesPhoenix.Component.Nav do |
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.
Shall be call it Navbar
to match Sidebar
and the name in bitsyles?
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.
Great addition 💚
#48
Notes