Skip to content

Problem: Static page alert HTML styling element documentation is out of date (using BS5 alert classes) #360

@fiver-watson

Description

@fiver-watson

Related docs

Affects any post-BS5 upgrade version, but most importantly, the current v2.10 documentation.

Issue noted

Specifically, the section that mentions how the BS5 alerts can be used.

Currently it says that using the inline element of style="alert" will work. In fact, all of these examples should use class instead, i.e.

Recommended fix

The examples should be as follows:

<div class="alert alert-primary">This alert uses your theme's primary color</div>

<div class="alert alert-secondary">This alert uses your theme's secondary color</div>

<div class="alert alert-success">This is a Success alert</div>

<div class="alert alert-info">This is an Info alert</div>

<div class="alert alert-warning">This is a Warning alert</div>

<div class="alert alert-danger">This is a Danger alert</div>

I wanted to include an updated screenshot of the results for you on this issue as well, but have since discovered that attempting to update a static page with any HTML content results in a 403 Forbidden error. I have confirmed that the above works on a client test site, but because they havea custom theme, the display of the alert-primary and alert-secondary colors are different than what would display in a default installation, and should therefore not be used for the public docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueAn issue that would be easy for someone who has not worked with the codebase/docs before.minor fixThe change requested by the issue will be minor in scopeuser manualThe issue affects content in the User manual

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions