Skip to content

Commit

Permalink
Clarify tooltip lint message (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyceZhu authored Aug 7, 2024
1 parent 0d0b5bc commit 4a358c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/primer/view_components/linters/tooltipped_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TooltippedMigration < Linter
include LinterRegistry
include Helpers::RuleHelpers

MIGRATE_TO_NEWER_TOOLTIP = ".tooltipped has been deprecated. There are major accessibility concerns with using this tooltip so please take action. See https://primer.style/guides/rails/migration-guides/primer-css-tooltipped."
MIGRATE_TO_NEWER_TOOLTIP = ".tooltipped has been deprecated. Due to major accessibility concerns with using this tooltip, please migrate to a Primer Tooltip component or rework the design to eliminate the tooltip. See https://primer.style/guides/rails/migration-guides/primer-css-tooltipped."
TOOLTIPPED_RUBY_PATTERN = /classes:.*tooltipped|class:.*tooltipped/.freeze

def run(processed_source)
Expand Down

0 comments on commit 4a358c7

Please sign in to comment.