Skip to content

Bug fix: Hide the selfie hint box when there's no text.#10274

Merged
charleyf merged 6 commits intomainfrom
charley/hide-selfie-text-when-empty
Mar 21, 2024
Merged

Bug fix: Hide the selfie hint box when there's no text.#10274
charleyf merged 6 commits intomainfrom
charley/hide-selfie-text-when-empty

Conversation

@charleyf
Copy link
Contributor

@charleyf charleyf commented Mar 21, 2024

🎫 Ticket

Slack thread bug report is here.

🛠 Summary of changes

This PR adds a few lines of CSS to hide an odd black dot that was appearing when the selfie hint text was empty. What was happening is that we style the <p> element with the class .document-capture-selfie-feedback. But because that styling was always applied, we were essentially getting a black background <p> element with padding. This change hides the <p> using CSS when it has no text inside it.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Go to the front/back/selfie page.
  • Open selfie capture
  • The hint text should change
  • You shouldn't see the black dot in the "before" screeenshots.

👀 Screenshots

If relevant, include a screenshot or screen capture of the changes.

Before:

before-black-dot

After with padding

after-no-black-dot

After, no padding

after-no-padding-black-dot

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

LGTM code-wise 👍

Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

I manually tested and the selfie hint box no longer appears when there is no hint text. Approved.

@charleyf charleyf merged commit bdd2993 into main Mar 21, 2024
@charleyf charleyf deleted the charley/hide-selfie-text-when-empty branch March 21, 2024 19:46
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.

3 participants