Skip to content

A warning will show in prepublication when an article has no license set.#4219

Merged
joemull merged 4 commits into
masterfrom
2270-license_warning
Jun 4, 2024
Merged

A warning will show in prepublication when an article has no license set.#4219
joemull merged 4 commits into
masterfrom
2270-license_warning

Conversation

@ajrbyers

@ajrbyers ajrbyers commented May 31, 2024

Copy link
Copy Markdown
Member
  • Adds two warnings, one when there is no set license and another when the set license has no URL.

Closes #2270

image image

@mauromsl mauromsl assigned joemull and unassigned mauromsl May 31, 2024
@mauromsl mauromsl requested a review from joemull May 31, 2024 10:46
@ajrbyers

Copy link
Copy Markdown
Member Author

Note: discussed with @mauromsl and decided that adding a warning for non CC licenses was a too opinionated.

@joemull joemull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One of these doesn't have target="_blank". Is that intentional?

The projected issue one (not changed in this PR) doesn't have one either.

@joemull joemull assigned ajrbyers and unassigned joemull May 31, 2024
This commit also adds screen reader only spans to warn users that links open in new tabs.
@ajrbyers ajrbyers requested a review from joemull June 4, 2024 09:11
@ajrbyers ajrbyers assigned joemull and unassigned ajrbyers Jun 4, 2024
@ajrbyers

ajrbyers commented Jun 4, 2024

Copy link
Copy Markdown
Member Author

One of these doesn't have target="_blank". Is that intentional?

The projected issue one (not changed in this PR) doesn't have one either.

Thanks Joe, I've added that in. The projected issue link opens a modal so doesn't require one.

@joemull joemull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"Opens in new tab" is nice, but this syntax sr-only is not used in foundation, is it?

https://sites.get.foundation/visibility.html#accessibility

It looks like it's included in font-awesome, but that's not what we want to draw on here, right?

@joemull joemull assigned ajrbyers and unassigned joemull Jun 4, 2024
@ajrbyers ajrbyers assigned joemull and unassigned ajrbyers Jun 4, 2024
@ajrbyers ajrbyers requested a review from joemull June 4, 2024 14:58
@joemull joemull merged commit 8bcccdb into master Jun 4, 2024
@joemull joemull deleted the 2270-license_warning branch June 4, 2024 14:59
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.

Add a warning at prepub when an article has no license or a license with no URL

3 participants