salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.63k stars 394 forks source link

Adding "alternative-text" on lightning-helptext breaks the code #3275

Open abhimanyud3dx opened 1 year ago

abhimanyud3dx commented 1 year ago

Description

Steps to Reproduce

 <lightning-helptext alternative-text="test" content="You'll receive weekly updates"></lightning-helptext>

Expected Results

Example: No error is throw with a beautiful cute helptext with alt text set as "test"

Actual Results

engine.js:253 Uncaught Error: Unknown public property "alternativeText" of element . This is likely a typo on the corresponding attribute "alternative-text". at Object.fail (engine.js:253:11) at update (engine.js:876:18) at Object.create (engine.js:891:22) at createCustomElmHook (engine.js:4766:14) at Object.create (engine.js:4911:7) at createChildrenHook (engine.js:4782:17) at Object.insert (engine.js:4892:7) at createChildrenHook (engine.js:4783:17) at Object.insert (engine.js:4892:7) at addVnodes (engine.js:1148:17)

Browsers Affected

Chrome Version 108.0.5359.125 (Official Build) (64-bit)

Possible Solution

USE SLDS

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain. image

Templarian commented 1 year ago

This will work in the real component. The playground can't be updated right now due to a technical issue we hope to resolve in the future (essentially rendering old versions of components).

@nolanlawson This can be closed.

abhimanyud3dx commented 1 year ago

I tested it on the live website build on LWC OSS, I am getting the same error.

image

Templarian commented 1 year ago

@abhimanyud3dx Can you verify you're using the latest NPM package.

I just pushed 1.17.2-alpha to lightning-base-components (public package). But pushed the internal package also.