-
Notifications
You must be signed in to change notification settings - Fork 82
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
Remove KResponsiveElementMixin #783
Remove KResponsiveElementMixin #783
Conversation
Hi @AlexVelezLl, I'm getting Page Not Found when trying to access the new documentation page https://deploy-preview-783--kolibri-design-system.netlify.app/usekresponsiveelement, any idea why? |
Thank you for noticing the not found page @MisRob! It was beacuse I was using a wrong doc file name. I just updated this and its solved now! |
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.
The code changes look good to me.
One thing that came to mind is that maybe we should deprecate KResponsiveElementMixin rather than just removing it outright. This would give us time to make the requisite changes in Kolibri.
Perhaps we could keep it and put a consol.warn()
in it's created()
hook saying "KResponsiveElement has been deprecated and will be removed in the next release. Please use useKResponsiveElement
".
In any case, once this merged can you make an issue in Kolibri for making the necessary changes there
Thank you @nucleogenesis! Yes, the ideal case is deprecate it before we remove it, but we discussed this with Richard and we wanted to make the removal part of the breaking changes of KDS v5. As per Richard's comment talking:
And yes, there is already an issue in Kolibri that is blocked by this PR learningequality/kolibri#12523, it is currently marked as help wanted, but I can take care of this and update the dependanbot PR updating the kds version as is a very straightforward change. |
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.
Everything looks good to me w/ that clarification @AlexVelezLl thank you!
Description
Make useKResponsiveElement public and remove KResponsiveElementMixin.
Issue addressed
Addresses #711.
Changelog
Description: Removes KResponsiveElementMixin.
Products impact: removed API.
Addresses: Make _useKResponsiveElement composable public and Remove KResponsiveElementMixin #711.
Components: KResponsiveElementMixin.
Breaking: yes.
Impacts a11y: no.
Guidance: Replace any use of
KResponsiveElementMixin
with the new composableuseKResponsiveElement
.Description: Adds new useKResponsiveElement composable.
Products impact: new API.
Addresses: Make _useKResponsiveElement composable public and Remove KResponsiveElementMixin #711.
Components: -.
Breaking: no.
Impacts a11y: no.
Guidance: -.
Description: Remove use of KResponsiveElementMixin internally
Products impact: - none
Addresses: Make _useKResponsiveElement composable public and Remove KResponsiveElementMixin #711.
Components: KBreadcrumbs, KFixedGrid.
Breaking: no
Impacts a11y: no
Guidance: -.
Steps to test
Testing checklist
Reviewer guidance
Comments