Skip to content

Commit

Permalink
update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Sep 27, 2024
1 parent f6248ce commit 8f47902
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions styles/custom/UIElements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# styles/custom/BoldUIElements.yml
extends: existence
message: "UI elements like '%s' should be bold."
level: warning
tokens:
# Match UI elements that are not bolded (i.e., not within **), but exclude those starting a sentence
- '(?<!^)(?<![.!?]\s)\bSave\b'
- '(?<!^)(?<![.!?]\s)\bSave as\b'
- '(?<!^)(?<![.!?]\s)\bCancel\b'
- '(?<!^)(?<![.!?]\s)\bSubmit\b'
- '(?<!^)(?<![.!?]\s)\bEdit\b'
- '(?<!^)(?<![.!?]\s)\bAccount settings\b'
- '(?<!^)(?<![.!?]\s)\bProject details\b'
- '(?<!^)(?<![.!?]\s)\bProfile settings\b'
- '(?<!^)(?<![.!?]\s)\bPersonal profile\b'

scope: raw # Ensure the rule is applied before formatting

0 comments on commit 8f47902

Please sign in to comment.