Skip to content

refactor: Migrate NcButton from render function to template #6033

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 30, 2024

☑️ Resolves

  1. Make it a template component instead of a render function
  2. Add a text prop to allow passing text content as prop
  3. Add noIconAriaHidden to allow making the icon appear on the accessible tree

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

@susnux susnux force-pushed the feat/refactor-nc-button branch from e8fd644 to 1b5c7b5 Compare August 30, 2024 19:03
@susnux susnux force-pushed the feat/refactor-nc-button branch 2 times, most recently from ab9aed0 to 04e0282 Compare January 19, 2025 16:08
@susnux susnux added 3. to review Waiting for reviews feature: button vue 3 Related to the vue 3 migration feature: functions composables, functions, mixins and other non-components refactor ♻️ Pull request that is neither a fix nor a feature labels Jan 19, 2025
@susnux susnux modified the milestones: 9.0.0-alpha.6, 8.23.0, 9.0.0 Jan 19, 2025
@susnux susnux changed the title feat: Refactor NcButton refactor: Migrate NcButton from render function to template Jan 19, 2025
@susnux susnux removed the feature: functions composables, functions, mixins and other non-components label Jan 19, 2025
@susnux susnux force-pushed the feat/refactor-nc-button branch from 04e0282 to c0dd0de Compare January 19, 2025 18:10
@susnux susnux marked this pull request as ready for review January 19, 2025 18:14
@susnux susnux force-pushed the feat/refactor-nc-button branch from 541f542 to 228fb39 Compare January 22, 2025 11:12
@susnux susnux force-pushed the feat/refactor-nc-button branch from 228fb39 to 562a8b7 Compare January 29, 2025 11:20
@susnux susnux requested a review from Antreesy April 1, 2025 17:41
@ShGKme
Copy link
Contributor

ShGKme commented Apr 1, 2025

With a force push instead of a fixup! it's hard to check what was changed since the last review, requiring a complete review again 👀

@susnux susnux force-pushed the feat/refactor-nc-button branch from 17607b3 to 82afb37 Compare April 1, 2025 19:47
@susnux
Copy link
Contributor Author

susnux commented Apr 1, 2025

With a force push instead of a fixup! it's hard to check what was changed since the last review, requiring a complete review again 👀

Sorry 🙈
Mostly only rebased.

Nevertheless this PR needs this backport first: #6595

@susnux susnux force-pushed the feat/refactor-nc-button branch from db74553 to 049b475 Compare April 2, 2025 11:05
@susnux
Copy link
Contributor Author

susnux commented Apr 2, 2025

Rebased to fix merge conflicts - no code changes.

@susnux susnux modified the milestones: 9.0.0, v9.0.0-rc.0 Apr 4, 2025
Copy link
Contributor

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

Left some nitpicks at your discretion. Looks fine overall.

1. Make it a template component instead of a render function
2. Add a `text` prop to allow passing text content as prop
3. Add `noIconAriaHidden` to allow making the icon appear on the accessible tree

Co-authored-by: Ferdinand Thiessen <[email protected]>
Co-authored-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the feat/refactor-nc-button branch from ce03cb3 to 2c92c40 Compare April 16, 2025 08:44
@susnux susnux merged commit d189a7a into main Apr 16, 2025
30 checks passed
@susnux susnux deleted the feat/refactor-nc-button branch April 16, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews feature: button refactor ♻️ Pull request that is neither a fix nor a feature vue 3 Related to the vue 3 migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants