Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

bluemoonecho
Copy link
Contributor

@bluemoonecho bluemoonecho commented Jun 30, 2023

#48


Notes

Default Inner Block Left Block
Screenshot 2023-06-30 at 15 22 26 Screenshot 2023-06-30 at 15 22 46 Screenshot 2023-06-30 at 15 22 53

@bluemoonecho bluemoonecho marked this pull request as draft June 30, 2023 12:46
@bluemoonecho bluemoonecho marked this pull request as ready for review June 30, 2023 13:26
@@ -4,7 +4,7 @@ defmodule BitstylesPhoenix.MixProject do
def project do
[
app: :bitstyles_phoenix,
version: "2.3.0",
Copy link
Member

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.

Copy link
Member

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
Copy link
Member

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
Copy link
Member

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?

Copy link
Member

@andreasknoepfle andreasknoepfle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants