-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support section header actions #9161
Support section header actions #9161
Conversation
packages/support/resources/views/components/section/index.blade.php
Outdated
Show resolved
Hide resolved
packages/support/resources/views/components/section/index.blade.php
Outdated
Show resolved
Hide resolved
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.
Thanks for the PR, @wychoong!
Could you have a look at my comment?
Also, @danharrin, don't we need some caching for the actions?
Additionally, maybe the API should be renamed to headerActions
?
@@ -124,6 +130,12 @@ | |||
</div> | |||
@endif | |||
|
|||
@if ($hasActions) | |||
<div class="flex flex-1 justify-end"> |
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 can probably remove the wrapper and directly add a class like ms-auto
to the actions component used here?
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.
thats better, done!
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.
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.
Hmm but the heading wrapper has flex-1
? 🤔
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.
yup it does
probably an alias to |
Yeah potentially there will be footer actions in the future, so I'd prefer to have specific APIs. |
I see. I think now only remain the api. I’ll leave it up to maintainers to decide for changes |
Requesting a review from @danharrin for the API. |
Can't wait to have this feature 🎉 |
@wychoong, could you rework this to be |
infolist section
form section
wrapped