Short:
The tag condition matches any note that contains the mentioned tag anywhere in its tag list, disregarding nested tags or substrings.
Sample:
Add styling rule: Note has tag "#Company"
Create two sample notes:
Note 1 with nested tag: #Finances/company/bank_usd
Note 2 with tag: #CompanyBills
Expected:
The above sample should not style the sample notes. They do not contain the tag "#Company" (rather, they contain "#Finances" and "#CompanyBills")
Actual:
The current CSS logic targets all notes that contain the text "company" somewhere in the tags field.
Suggestion
Currently, the styling CSS uses .data-link-icon[data-link-tags*="Company" i]::before to recognize "#Company" tags.
More accurate would be .data-link-icon[data-link-tags*="#Company" i]::before (to skip nested tags)
The most accurate CSS would be:
.data-link-icon[data-link-tags*="#Company " i]::before, /* e.g. "#Company #Client" */
.data-link-icon[data-link-tags*="#Company/" i]::before, /* e.g. "#Company/Client" */
.data-link-icon[data-link-tags$="#Company" i]::before /* e.g. "#Company" */
Short: The tag condition matches any note that contains the mentioned tag anywhere in its tag list, disregarding nested tags or substrings.
Sample:
Note has tag "#Company"
Create two sample notes:
#Finances/company/bank_usd
#CompanyBills
Expected: The above sample should not style the sample notes. They do not contain the tag "#Company" (rather, they contain "#Finances" and "#CompanyBills")
Actual: The current CSS logic targets all notes that contain the text "company" somewhere in the tags field.
Suggestion
.data-link-icon[data-link-tags*="Company" i]::before
to recognize "#Company" tags..data-link-icon[data-link-tags*="#Company" i]::before
(to skip nested tags)