Problem/Motivation

When using UI Suite DaisyUI with a subtheme (genrerated with starterkit) , I want to hide some of the components that come from the parent theme.

So I do for example (in the subtheme):

name: Button
description: "Buttons allow the user to take actions or make choices."
group: Actions
replaces: ui_suite_daisyui:button
noUi: true
...

The replaces and noUi don't work together.

If used individually, both key work.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

g4mbini created an issue. See original summary.

g4mbini’s picture

Title: noUI and replaces don't seem to work together » noUi and replaces keys don't seem to work together
g4mbini’s picture

g4mbini’s picture

Issue summary: View changes

just_like_good_vibes made their first commit to this issue’s fork.

just_like_good_vibes’s picture

Assigned: Unassigned » pdureau
Status: Active » Needs review
just_like_good_vibes’s picture

christian.wiedemann made their first commit to this issue’s fork.

christian.wiedemann’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

christian.wiedemann’s picture

Assigned: christian.wiedemann » Unassigned
g4mbini’s picture

Don't know what I'm missing but components overriden in my subtheme like below still show up in Patterns library and Layout Builder ...

replaces: ui_suite_daisyui:accordion
noUi: true
pdureau’s picture

Assigned: Unassigned » christian.wiedemann
Status: Fixed » Needs work
christian.wiedemann’s picture

Ah shit. I will fix it. Sorry missunderstood the issue.

christian.wiedemann’s picture

Assigned: christian.wiedemann » pdureau
Status: Needs work » Needs review

The logic was not working from my point of view. I refactored it a bit and added tests. Now it should work

g4mbini’s picture

Status: Needs review » Reviewed & tested by the community

Thanks my friend, that works for me now in Patterns Library and Layout Builder !

Regarding the code, not able to judge ...

pdureau’s picture

Assigned: pdureau » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.