Describe the bug
In the catalog_modal template part, it's possible for the description modal to be printed on the page even if the toggle button for said modal is not. This can ultimately result in content that is completely inaccessible to all users.
https://github.com/UCF/Main-Site-Theme/blob/7ab44c16b333f9d2d5ccf8e118b59d9faf8e386b/template-parts/degree/catalog_modal.php
Steps to Reproduce
See the Health Sciences (BS) – Pre-Clinical Track as an example. There are some scenarios in which we don't print the description or course_overview template part contents, and thus, don't print the catalog modal toggle button.
Expected Behavior
A catalog modal toggle button should always be rendered anywhere the modal itself is rendered.
Possible Fix
Not sure if the best course of action for this would be to remove the modal entirely in these scenarios, or to update logic somewhere to ensure a toggle button is always displayed when the modal is available. Needs feedback from Roger.
Your environment:
n/a
Additional context
n/a