Skip to content

fix(theme): swap admonition caution and warning styling - #43

Merged
wesleyboar merged 7 commits into
mainfrom
fix/admonition-caution-warning-swap
Oct 7, 2026
Merged

wesleyboar merged 7 commits into
mainfrom
fix/admonition-caution-warning-swap

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Overview

Aligns admonition caution/warning styling with Core-Styles and bumps the theme CDN to 2.59.1.

Related

requires:

required by:

Changes

  • swapped pymdownx.css caution vs warning icons
  • updated CDN pins for core-styles.base.css and core-styles.docs.css
  • swapped extensions.md caution vs warning usage
  • updated theme version to 1.0.5

Testing

  1. Start server using this branch.
  2. Open /extensions.
  3. Verify admonitions: caution red, warning yellow.
  4. Verify: no other style changes.

UI

Before After
Admonition caution and warning (before) Admonition caution and warning (after)

Match Core-Styles severity mapping in pymdownx icons and layer overrides until CDN bump.

Co-authored-by: Cursor <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Oct 7, 2026
## Overview

Swaps admonition `caution` and `warning` styling and demo use-case copy
so severity matches typical interpretation.

> [!CAUTION]
> **Must update all clients, because this is a breaking change** and I
don't want to bump major version.

## Related

required by:
- TACC/mkdocs-tacc#43
- TACC/Core-CMS#1247
- TACC/TACC-Docs#179
- DesignSafe-CI/DS-User-Guide#293

## Changes

- **fixed** `admonition` caution vs warning message-type mapping and
icon
- **updated** admonition demo `config.yml` use cases
- **updated** `dist` build output

## Testing

1. `make start` (or ensure Fractality is on port 3000 with this branch
checked out).
2. Open http://127.0.0.1:3000/components/detail/admonition
3. Confirm **Caution** is red (error) and **Warning** is yellow
(warning).

## UI

| Before | After |
| - | - |
| <img width="760" alt="Admonition caution and warning (before)"
src="https://github.com/user-attachments/assets/16e4cc0f-29df-4cb1-b99f-019deb39c14e"
/> | <img width="760" alt="Admonition caution and warning (after)"
src="https://github.com/user-attachments/assets/775f0a19-e328-4cf8-9def-d824efa3eb29"
/> |

Co-authored-by: Cursor <[email protected]>
Bump theme CDN after Core-Styles minor release; drop redundant admonition overrides.

Co-authored-by: Cursor <[email protected]>
@wesleyboar
wesleyboar force-pushed the fix/admonition-caution-warning-swap branch from 12e0357 to ee832bd Compare October 7, 2026 19:08
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Oct 7, 2026
## Overview

Forces release-please to propose **2.59.0** (minor) instead of **3.0.0**
after `fix(components)!` on #758.

> [!IMPORTANT]
> **Why?** [v3 is a whole
project.](https://github.com/orgs/TACC/projects/10) I will update
clients to not break by immediately integrating this breaking change for
them.

## Related

- blocks merge of #759 until
this is on `main`
- required by TACC/mkdocs-tacc#43
- required by TACC/Core-CMS#1247

## Changes

- **added** empty commit with `Release-As: 2.59.0` footer (per
PUBLISHING.md)

## Testing

1. Merge this PR to `main`.
2. Confirm release-please updates
#759 to `chore(main): release
2.59.0` (not 3.0.0).

## Notes


Made with [Cursor](https://cursor.com)

Co-authored-by: Cursor <[email protected]>
@wesleyboar
wesleyboar force-pushed the fix/admonition-caution-warning-swap branch from 45b6995 to a6a49b5 Compare October 7, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant