Decathlon / vitamin-ios

Decathlon Design System UI components for iOS & iPadOS applications
https://www.decathlon.design
Apache License 2.0
46 stars 14 forks source link

fix: allow removing horizontal padding on VitaminTextField #90

Closed daniel-dumortier closed 1 year ago

daniel-dumortier commented 1 year ago

Changes description

Horizontal leading and trailing padding are added to VitaminTextField. The aim of this PR is to allow removing these padding if desired (and keeping them by default for retrcompatibility). For that, a new boolean property named horizontalPadding has been added to VitaminTextField. Its default value is true (for backward compatibility), and can be set to false either in constructor, of afterwards.

Context

Fixes #89

Checklist

Does this introduce a breaking change?

Screenshots

iPhone

simulator_screenshot_C7A9CB4C-0897-4B6D-A443-79CD028EC42A

iPad

simulator_screenshot_0CA85E44-3535-4647-AC46-13D9EE03FEB6

Other information

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication