8000 BIT-766: Fixes a bug with the textfield clear button visibility by nathan-livefront · Pull Request #224 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BIT-766: Fixes a bug with the textfield clear button visibility #224

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

Merged
merged 7 commits into from
Dec 21, 2023

Conversation

nathan-livefront
Copy link
Contributor

🎟️ Tracking

BIT-766

🚧 Type of change

  • 🐛 Bug fix

📔 Objective

This PR fixes a small issue with the clear button in textfields throughout the app. Previously, the clear button would show whenever there was text in the field. Now, the clear button will only be visible when there is text in the field and the field is currently focused.

📋 Code changes

  • BitwardenTextField.swift: Added focus state properties to keep track of the current focus state of the field.

📸 Screenshots

RocketSim_Recording_iPhone_15_Pro_6.1_2023-12-14_20.07.25.mp4

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor
github-actions bot commented Dec 20, 2023
2 Warnings
⚠️ Ignoring duplicate libraries: '-lbitwarden_uniffi'
⚠️ BitwardenShared/UI/Platform/Application/Views/BitwardenTextField.swift has less than 80% code coverage

Bitwarden code coverage

Total coverage: 86.00%

File Coverage
BitwardenShared/UI/Platform/Application/Views/BitwardenTextField.swift 57.43%

Powered by Slather

Generated by 🚫 Danger

@bitwarden-bot
Copy link
bitwarden-bot commented Dec 20, 2023

Logo
Checkmarx One – Scan Summary & Details086ae039-5609-400c-a79a-253e0ce097e5

No New Or Fixed Issues Found

@matt-livefront matt-livefront self-assigned this Dec 20, 2023
Copy link
Collaborator
@matt-livefront matt-livefront left a comment

Choose a reason for hiding this comment

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

This looks good, but I think @shannon-livefront's snapshots from the add folder PR will need to be updated.

@nathan-livefront nathan-livefront merged commit 45dc4ed into main Dec 21, 2023
@nathan-livefront nathan-livefront deleted the nathan/BIT-766-textfield-clear-button branch December 21, 2023 13:27
vvolkgang pushed a commit that referenced this pull request Feb 24, 2025
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
0