openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Implement green color for checkmarks in support matrix tables #453

Closed tbazant closed 2 years ago

tbazant commented 2 years ago

Problem Description

While the UTF crossmark is naturally red, checkmark is normally black and is not so distinct. Greening it would help readability

tomschr commented 2 years ago

I've implemented now the colored text in the above PR.

Basically you need a processing instruction <?dbsuse color="..."?> wrapped inside a <phrase> or use the attribute role="color:...". The color key can hold several possible values:


If you want to try this out, here is a small procedure:

  1. Clone the openSUSE/suse-xsl repo.
  2. Switch to the 453-color-para_phrase branch.
  3. Run daps with the --styleroot option. Replace $PATH_TO_CLONED_DIR with the directory from step 1.

    daps --styleroot=$PATH_TO_CLONED_DIR/suse2022-ns/ ...