-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(split-button): DLT-1819 vue component #420
Conversation
Please add either the |
Could we rename all |
packages/dialtone-vue2/components/split_button/split_button.vue
Outdated
Show resolved
Hide resolved
packages/dialtone-vue2/components/split_button/split_button.vue
Outdated
Show resolved
Hide resolved
Need to leave now I will continue later, looks good, really cool addition |
Could be possible to clearly separate The structure would be more readable and they will have more well defined the scope of each, e.g. props. |
It's possible, I'll try and see how it looks. |
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.
Looks really good! Great variants / examples.
packages/dialtone-vue2/components/split_button/split_button-omega.vue
Outdated
Show resolved
Hide resolved
packages/dialtone-vue2/components/split_button/split_button.vue
Outdated
Show resolved
Hide resolved
packages/dialtone-vue2/components/split_button/split_button_default.story.vue
Outdated
Show resolved
Hide resolved
packages/dialtone-vue2/components/split_button/split_button_default.story.vue
Outdated
Show resolved
Hide resolved
</split-button-omega> | ||
</template> | ||
<template #list> | ||
<!-- @slot Built-in dropdown contents --> |
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.
bit confused just looking at the doc what should be passed in here. just list items? should it include the <ul>
wrapper or not? May also want to mention omega slot will completely override this
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.
It's the dropdown's list slot, it's not documented properly on storybook either, but I'll make sure to mention this on the dialtone docs.
I'll add a small comment in the storybook slot, but it will be fully documented on dialtone.
I was just following the naming convention that @francisrupert already created for the CSS classes in his PR: #373. I like that naming because if we were using this component on a RTL language, we could potentially invert the order of alpha and beta to make sense in those languages too. I don't know if that was the objective of using that naming, maybe @francisrupert can give us more insight on this. I can change the naming if it makes this more user-friendly and if @braddialpad and @ninamarina agree with that too. |
Yes that's correct, we don't want to use right or left, in case we ever support RTL, and when there are multiple elements with no other descriptive distinction referring to them alpha and omega is commonly used. We use this convention in the leftbar component as well. The naming should be fine here. |
Alpha button should always have a Tooltip, e.g. "More calling options". |
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.
This is a great implementation. Pretty much all my comments above are individual comments with screenshots, and not necessarily tied to a specific line number.
Let me know if you've any questions.
It's a bit strange, but you need to put "" (empty string) instead of just removing the content on default slot so Storybook updated accordingly and you can remove the text from the button. This is just a Storybook thing, this works properly on the component itself. |
Ok, I'll make |
any chance you guys can swap me out for the right julio?
when you tag @julio, these messages come to me
you want to tag @juliodialpad instead
thanks
…On Mon, Aug 5, 2024 at 1:20 PM Julio Ortega ***@***.***> wrote:
Alpha button should *always* have a Tooltip, e.g. "More calling options".
Ok, I'll make alphaTooltipText a required prop.
—
Reply to this email directly, view it on GitHub
<#420 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAB7X7WANCLUVVT6GXEJTDZP7NB3AVCNFSM6AAAAABLVJXVOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZHA2DQMRVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Julio
|
Oop. I meant |
We introduced a tiny inconsistency with this update, see screenshot below. Possible solution off the top of my head... Update this... dialtone/packages/dialtone-css/lib/build/less/components/button.less Lines 660 to 663 in 22dff3c
...to... // hide divider line when hovering or focusing any button within the split button
.d-split-btn:has(:focus-visible, :hover, .d-btn--active) & {
opacity: 0;
} ...though I'm not sure what that means for the other variants where divider should not be suppressed. Screen.Recording.2024-08-05.at.4.12.51.PM.mov |
Sorry for that, you can try unsubscribing, go to the top of the page and click |
✔️ Deploy previews ready! |
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.
Sweet! Thanks so much. I'm assuming https://dialtone.dialpad.com/deploy-previews/pr-420/components/split-button.html will be updated once Vue3 equivalent is done so you can doc it.
Correct, I'll update docs with vue 3 version |
Split button - Vue 2 component
This is going to be merged into @francisrupert PR's: #373 which already included most of the CSS and some docs.
Obligatory GIF (super important!)
🛠️ Type Of Change
These types will increment the version number on release:
📖 Jira Ticket
https://dialpad.atlassian.net/browse/DLT-1819
📖 Description
📝 Checklist
For all PRs:
For all Vue changes:
./scripts/dialtone-vue-sync.sh
script. Read docs here: Dialtone Vue Sync ScriptFor all CSS changes:
If new component:
packages/dialtone-vue2
orpackages/dialtone-vue3
).packages/dialtone-css
package.apps/dialtone-documentation
.common/components_list.cjs
🔮 Next Steps
📷 Screenshots / GIFs