Skip to content
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: menu #258

Merged
merged 19 commits into from
Feb 1, 2025
Merged

feat: menu #258

merged 19 commits into from
Feb 1, 2025

Conversation

pimenovoleg
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Jan 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocks-showcase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 5:04pm
primitives ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 5:04pm
radix-astro-doc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 5:04pm
shadcn-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 5:04pm
taxonomy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 5:04pm

@pawel-twardziak
Copy link
Contributor

looks good to me, nice work 👍

@pimenovoleg
Copy link
Contributor Author

@pawel-twardziak @artembelik

Please summarize if there are any blockers on your end.

If not, let's merge and move forward.

Can you create tasks for the required improvements?

@pawel-twardziak
Copy link
Contributor

No blockers on my side. I was just pointing out quite important thing to always remember to run ngOnChanges if necessary whenever we set decorated inputs manually.

if (this.enablePositions) {
const prevMenuPosition = this.cdkTrigger.menuPosition;
this.cdkTrigger.menuPosition = [positions];
this.fireNgOnChanges('menuPosition', this.cdkTrigger.menuPosition, prevMenuPosition);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pawel-twardziak

I've updated CDK to 19.1, and now there's a public ngOnChanges method :)
At the same time, I moved the effect to the constructor (based on the discussion in the progress bar).

Could you check if everything looks correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see it, it has been added for over one month
obraz

In regard to the effect we an simply create a method on the class per each effect that is being run in the constructor. I see this as a more consistent approach (eslint will not complain that there is an unused prop when haiving a prop per each effect). I go this way in popover, hover card and tooltip.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was released on 19.1
angular/components#30234
https://github.com/angular/components/releases/tag/19.1.0

And since this was the 19.1 release, the discussion above initially confused me a bit—how to proceed without access to the method :)

I've made further adjustments to the code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. I said that a few times that this is necessary when the method is implemented. I believe if we read our comments carefully, there will be less confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Primitives] Menubar
3 participants