Skip to content

CSS Attribute Selectors Don't Respond to Changed State #6122

Description

@mudlabs

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

  • Yes. Couldn't find similar issue/discussion

Tell us about the problem

I'd expect CSS attribute selector rules to kick in when there's a change and they become valid/true, however that is not the case.

For example the rule, .label[occupied="true"] { background-color: red; } will not produce a red label unless the condition is true to begin with.

Toggling between .label and .label.occupied will work as expected though.

Which platform(s) does your issue occur on?

iOS/Android/Both

  • iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.1.1
  • Modules: 4.1.0
  • iOS Runtime: 4.1.1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions