six-group / six-webcomponents

Ready to use Web Components in alignment with the SIX Corporate Styleguide
https://six-group.github.io/six-webcomponents/
Apache License 2.0
17 stars 7 forks source link

Six Error Page has an issue with custom error descriptions #262

Open colinscz opened 3 weeks ago

colinscz commented 3 weeks ago

Six Webcomponents version

v4.2.2

Steps to reproduce

Use a string for the description. String does not support .map function which results in an error when the custom description should be assigned. Should only be executed if the customDescription is in fact a set of strings / an array.

grafik

grafik

What is expected?

What is actually happening?

grafik

System Info

No response

Any additional comments?

No response

stefanrufer commented 2 weeks ago

The string[] is mapped to different lines.

Improve the documentation:

davidemarcoli commented 2 weeks ago
  • on customDescription property document that an error code needs to be given.
  • improve the last example to give an error code so that the customDescription is actually shown

@stefanrufer @colinscz In dev the description is showing without passing an error code (as it probably should be). image There is a problem when rendering it in the docs. I'll try to debug it.