Skip to content

Phone Input: Fix flag image for deployed environments#5513

Merged
aduth merged 1 commit intomainfrom
aduth-fix-flag-image
Oct 18, 2021
Merged

Phone Input: Fix flag image for deployed environments#5513
aduth merged 1 commit intomainfrom
aduth-fix-flag-image

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Oct 18, 2021

Regression of: #5481

Why: These styles are intended to override the default intl-tel-input relative-path, non-fingerprinted image path URL. Since the image is part of the Rails asset pipeline, it needs to be referenced with the image-url helper.

This style existed before #5481, but it was changed from a bare .iti__flag to one specific to the "component" being extracted. Unfortunately, it used a non-existent .phone-input class, intended to be scoped to the lg-phone-input custom element.

Before After
before after

**Why**: These styles are intended to override the default intl-tel-input relative-path, non-fingerprinted image path URL. Since the image is part of the Rails asset pipeline, it needs to be referenced with the image-url helper.
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@aduth aduth merged commit 0168365 into main Oct 18, 2021
@aduth aduth deleted the aduth-fix-flag-image branch October 18, 2021 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants