Pricing card throws error when selecting "Highlight card"
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3588377. --> Reported by: [cruzxalejandro](https://www.drupal.org/user/3814346) Related to !22 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>There seems to be an issue with the pricing card component. Selecting "Highlight card" throws an error.</p> <p><em>Twig\Error\RuntimeError occurred during rendering of component ee17e4fd-152e-4ce8-bdbf-254a1e37bfa8 in Page Home (6), field components: An exception has been thrown during the rendering of a template ("[haven_theme:button/variant] Does not have a value in the enumeration ["primary","secondary","accent","light"]. The provided value is: "primary-inverted".") in "haven_theme:button" at line 1.<br> </em></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ul> <li>Fresh install of drupal CMS</li> <li>Edit any page using canvas</li> <li>Select and drop pricing card component</li> <li>Enable "Highlight Card"</li> </ul> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>To fix the error, use "accent" instead of "primary-inverted", as this will be the preferred color combination with the green background.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>One thing to consider, There is content that looks hidden when card is highlighted. The H3 and rich text content.</p>
issue