New and Changed Components in Salesforce's LWC: Barcode Scanner, Accessibility Updates, and More!

New and Changed Components in Salesforce's LWC: Barcode Scanner, Accessibility Updates, and More!

 

In Salesforce, there are several new and changed Lightning Web Components (LWC) related to user interface and accessibility.


The first new component is called "lightning-barcode-scanner." This component requires API version 57.0 or later and allows you to embed an icon that launches a barcode scanner when clicked by the user. This component can be configured to only scan certain types of barcodes, change the size of the camera view, customize the icon, and more. This component can be useful for businesses that need to scan barcodes for inventory management or other purposes.

There are also several changed components in LWC. The first is "lightning-input." This component now has an added attribute called "aria-invalid-Control," which controls whether accessibility tools read empty required textboxes as invalid. By default, this attribute is set to false.

The second changed component is "lightning-input-field." This component also now has an added attribute called "aria-invalid-Control," which controls whether accessibility tools read empty required textboxes as invalid. By default, this attribute is set to false.

The third changed component is "lightning-spinner." This component now has a new "size" attribute with two new options: x-small and xx-small. This allows developers to customize the size of the spinner component to better fit their needs.


Overall, these new and changed components in Salesforce's LWC framework provide developers with more flexibility and customization options for building user interfaces and improving accessibility.

Post a Comment

0 Comments