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

Add desktop/mobile navigation #74

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

JimmyHoenderdaal
Copy link
Member

No description provided.

@JimmyHoenderdaal
Copy link
Member Author

image

image

resources/views/components/nav-layer.blade.php Outdated Show resolved Hide resolved
resources/views/navigation/nav.blade.php Outdated Show resolved Hide resolved
Copy link
Member

@royduin royduin left a comment

Choose a reason for hiding this comment

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

Some more info on how it's working and where what's for would be nice to have within comments in the templates.

resources/views/navigation/header-button.blade.php Outdated Show resolved Hide resolved
resources/views/navigation/nav.blade.php Outdated Show resolved Hide resolved
@slots(['headerbutton'])

<x-rapidez::slideover.mobile
:title="(string) $title"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need the casting?

Copy link
Member Author

Choose a reason for hiding this comment

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

otherwise I get this error
image

resources/views/components/nav-layer.blade.php Outdated Show resolved Hide resolved
</a>
@endif
@if ($child['children'])
@php($childId = uniqid(Str::snake("{$child['title']}" ?? '')))
Copy link
Member

Choose a reason for hiding this comment

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

This vs unique helpers provide by Laravel? Don't we have a unique ID already which we can use?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is using uniqid but it adds snake case to the title for whenever there are spaces in the title
image

I want to use the title here since it makes it more clear what id's and for's are linked to each other in your browser.
Could of course remove that part and only have uniqid but that would make the id a bit abstract and thus hard to debug if needed

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.

3 participants