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

Use prefixes with SVGs so they won't clash with the parent app's #2783

Merged
merged 18 commits into from
May 24, 2024

Conversation

gabrielgiroe1
Copy link
Collaborator

@gabrielgiroe1 gabrielgiroe1 commented May 20, 2024

Description

Fixes #2761

Link to #33
Link to #38
Link to #70

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots & recording

Manual review steps

  1. Step 1
  2. Step 2

Manual reviewer: please leave a comment with output from the test if that's the case.

Copy link

codeclimate bot commented May 20, 2024

Code Climate has analyzed commit 9883d66 and detected 0 issues on this pull request.

View more on Code Climate.

@gabrielgiroe1 gabrielgiroe1 self-assigned this May 20, 2024
@gabrielgiroe1 gabrielgiroe1 marked this pull request as draft May 20, 2024 13:03

def heroicons?(node)
svg_arg = node.arguments[0].source
svg_arg.match?(/svg[ |(]['|"].[^heroicons|avo]/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] reported by reviewdog 🐶
[Corrected] Lint/DuplicateRegexpCharacterClassElement: Duplicate element inside regexp character class


def heroicons?(node)
svg_arg = node.arguments[0].source
svg_arg.match?(/svg[ |(]['|"].[^heroicons|avo]/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] reported by reviewdog 🐶
[Corrected] Lint/DuplicateRegexpCharacterClassElement: Duplicate element inside regexp character class

Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GJ with this PR!
Straight to the point!

@gabrielgiroe1 gabrielgiroe1 merged commit f78e3b1 into main May 24, 2024
21 checks passed
@gabrielgiroe1 gabrielgiroe1 deleted the feature/standardize-heroicons branch May 24, 2024 11:33
Copy link
Contributor

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

@adrianthedev adrianthedev changed the title Add heroicons/outline before svg Use prefixes with SVGs so they won't clash with the parent app's May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local icons don't override Avo's icons
2 participants