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

Nested selectors behave weirdly #13

Open
juliawarnke opened this issue Sep 3, 2021 · 3 comments
Open

Nested selectors behave weirdly #13

juliawarnke opened this issue Sep 3, 2021 · 3 comments
Assignees

Comments

@juliawarnke
Copy link
Member

juliawarnke commented Sep 3, 2021

First weird case:

In my config file:

'styles' => [
        'default' => [
            'ul' => 'bg-success',
            'ul ul' => 'bg-fail',
            'li' => 'list-disc mb-1.5',
        ],
    ],

The outcome.

Bildschirmfoto 2021-09-03 um 08 51 27

I expected the nested ul to have bg-fail as a class, but it doesnt.

These settings seem to work:

'styles' => [
        'default' => [
             'li' => 'list-disc mb-1.5',
            'ul' => 'bg-success',
            'li ul' => 'bg-fail',
        ],
    ],
@jonassiewertsen
Copy link
Contributor

The following should work correctly:

'styles' => [
        'default' => [
            'ul' => 'bg-success',
            'ul li ul' => 'bg-fail',
            'li' => 'list-disc mb-1.5',
        ],
    ],
    ```

@juliawarnke
Copy link
Member Author

juliawarnke commented Sep 3, 2021

Sadly that does not work. It seems to only select the first occurrence.

Bildschirmfoto 2021-09-03 um 09 15 28

@jonassiewertsen jonassiewertsen self-assigned this Sep 3, 2021
@jonassiewertsen
Copy link
Contributor

As those packages do work similar, it's related: visuellverstehen/statamic-classify#16

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

No branches or pull requests

2 participants