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

Multiple Selector Issue (bodyFont) #51

Open
dtcblyth opened this issue Jan 24, 2024 · 0 comments
Open

Multiple Selector Issue (bodyFont) #51

dtcblyth opened this issue Jan 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dtcblyth
Copy link

Related thread: https://discord.com/channels/1041765492907589683/1079860683623116862/threads/1184742082301149234

Problem:

When specifying multiple selectors and outputting styles for the bodyFont component, the a, ol, ul, and blockquote selectors are only appended to the last selector.

For example, this:

myElement: {
  type:     'object',
  selector: '{{selector}} th, {{selector}} td',
  ...
  decoration: {
    bodyFont: {
      ...
    },
  },
  ...
}

Should output styles like this:

.my_module_01 th a, .my_module_01 td a {
  color: #123456;
}
.my_module_01 th ol, .my_module_01 td ol {
  font-weight: 800;
}
etc...

But actually outputs this:

.my_module_01 th, .my_module_01 td a {
  color: #123456;
}
.my_module_01 th, .my_module_01 td ol {
  font-weight: 800;
}
etc...

Note:

This issue may also affect the headingFont component but I haven’t tested that myself.

@dtcblyth dtcblyth added the bug Something isn't working label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant