SSWConsulting / SSWConsulting/SSW.Rules

Figure captions CSS Semantics

Open
#337 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
26
Forks
17
Avg merge
14h 39m
Merged PRs (30d)
2

Description

Hi @christianmorfordwaitessw

as per our conversation, I noticed that the way we are adding the icons next to captions (good/bad/ok) is using the pseudo-element ::after with position:absolute;. This doesn't make sense and make it harder to get the icons aligned to the text in different screens.

Screen Shot 2021-02-23 at 4 00 40 PM

I'd like to have it changed to ::before as per https://sswconsulting.github.io/SSW.Rules-prototype-style/rule.html
Screen Shot 2021-02-23 at 4 02 53 PM

  1. Please action from ::after to ::before (avoid position:absolute/relative)

...The good and bad icons are also using a GIF image... it should use FontAwesome, as per the OK icon

  1. Please fix from images to FontAwesome

AB#60044

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the figure-caption styles and comparing the current ::after and absolute-positioned icon rules with the linked style reference. Check how the existing OK icon uses FontAwesome, then update the good and bad captions to use the same approach and verify all three icons align without absolute or relative positioning.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
design, frontend
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.