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 markers: add New visual style and remove unnecessary "text semantics" #1481

Merged
merged 5 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion guidelines/guidelines.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
}

.change {
display:inline;
display: inline;
color: #fff;
background: #e00;
patrickhlauke marked this conversation as resolved.
Show resolved Hide resolved
border-radius: 0.25em;
padding: 0.25em;
patrickhlauke marked this conversation as resolved.
Show resolved Hide resolved
margin: 0 0.25em 0 0;
font-weight: bold;
}

.new {
Expand Down
5 changes: 0 additions & 5 deletions script/wcag.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ function linkUnderstanding() {
}

function addTextSemantics() {
// put brackets around the change marker
document.querySelectorAll('p.change').forEach(function(node){
var change = node.textContent;
node.textContent = "[" + change + "]";
})
// put level before and parentheses around the conformance level marker
document.querySelectorAll('p.conformance-level').forEach(function(node){
var level = node.textContent;
Expand Down