Decathlon / vitamin-web

Decathlon Design System UI components for web applications
https://decathlon.github.io/vitamin-web
Apache License 2.0
279 stars 77 forks source link

fixed bug#1448: made VtmnSelect React component to show label only when labelText prop is passed to it #1495

Open rajeshpoojari39 opened 2 months ago

rajeshpoojari39 commented 2 months ago

Changes description

Made changes to VtmnSelect React component to show label only when labelText prop is passed to it.

Context

The issue mentioned in the below link says the VtmnSelect component shows label html tag when empty label is passed to the component. I have made fix for this in the VtmnSelect React component only, as I am well versed with react. With this fix the component will not add empty label html tag if labelText prop is not passed to it. #1448

Checklist

Does this introduce a breaking change?

Other information

This issue is only fixed for VtmnSelect React component

CLAassistant commented 2 months ago

CLA assistant check
All committers have signed the CLA.