-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ResourceList] Fix Item Action right position #2051
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
Conversation
c8eba7b to
ccd11d0
Compare
dleroux
left a comment
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.
@ruairiphackett thanks for doing this. However the Actions targetted also affect the actions when they are not persistent with persistActions so it ends up looking like this on hover:
Setting right: auto on persistent actions only might do the trick.
With your change, it still doesn't line up properly. I inspected it and it looks like the card is using just a plain button and the persistent Actions are using plain and slim. Removing slim on persistent actions only should make this line up.
There's also a UNRELEASED conflict.
ccd11d0 to
5e806bc
Compare
|
Thanks @dleroux I should have noticed that! 🤦♂ I removed I tried with I noticed there was also an issue with non-persistent actions not lining up:
I noticed that the non-persistent action should probably line up with the header alternate tool button or sorting instead of the actions in the header, so I added a further change to match this: Before this PR: If you think I should do this change in another PR to keep the change separate or if this is unnecessary please let me know. |
|
The joys of Resource List :). I just noticed that when the actions get hidden on a smaller screen, the Disclosure button (3 little dots on the popover) need to be updated as well. I think all you'll need is remove this:
Once that is done, squashed and conflicts resolved, I think we're good. |
66a3555 to
3733cf9
Compare
|
@dleroux Made that change and resolved the UNRELEASED.md conflict 👍 |
3733cf9 to
a981236
Compare
a981236 to
0307dd1
Compare
dleroux
left a comment
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.
Thank you for doing this! 🚢





WHY are these changes introduced?
Fixes #1345
WHAT is this pull request doing?
Removes a
rightvalue in theResourceList.ItemActionswhich was causing it to not be aligned with other right aligned buttons like the Card actions:Before:
After:
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes