Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change html of confirm scopes from span and p to dl. #6274

Conversation

rbonatuvic
Copy link
Contributor

@rbonatuvic rbonatuvic commented Dec 18, 2024

  • Brief description of changes applied
  • Test cases for all modified changes, where applicable

Changes to two confirmation pages associated with OIDC login flow.
On these pages, items being confirmed, claims or scopes, are displayed with span, strong, and paragraph tags.

I think that a definition list is a more appropriate tag for the presentation.
The default formatting of dl looks similar and provides indentation making the text more readable.
I also included some css classes in case someone wanted to add custom formatting (the class names are not very original).
A run of functional tests is at https://github.com/rbonatuvic/cas/actions/runs/12381499198

@mmoayyed
Copy link
Member

Please provide a few screenshots of the changes.

@rbonatuvic
Copy link
Contributor Author

rbonatuvic commented Dec 24, 2024

current
current
modified
modified
The file named 'current' is the the view that is currently in 'master' (the first file above).
The file named 'modified' is the proposed change (the second file above).

@mmoayyed
Copy link
Member

Thank you.

Why do you think a definition list is a more appropriate tag for the presentation? The newer changes make the screen look cluttered and compressed.

@rbonatuvic
Copy link
Contributor Author

rbonatuvic commented Dec 24, 2024

Given the list nature of the key value relationship, dl tags would allow for custom styling without colliding with the p tag.
I think the close association of the list gives good separation of the claims from other page elements. There is also a nice flow (stylistically and physically when reading) from the claim to the description.
Here is a screenshot where the dl tag is inside the loop (change not committed).
dl-inside-loop

@mmoayyed
Copy link
Member

Makes sense, thank you for the details.

@apereocas-bot apereocas-bot added the Auto Merge Merge pull requests submitted via automated bots, such as RenovateBot, etc label Dec 27, 2024
Copy link
Contributor

@apereocas-bot apereocas-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request is approved and it will be merged shortly. Thank you very much! 🎉🎉

image

@apereocas-bot apereocas-bot merged commit 8726fa6 into apereo:master Dec 27, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto Merge Merge pull requests submitted via automated bots, such as RenovateBot, etc Under Review User Interface & Themes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants