Skip to content

Commit

Permalink
Revert "trying APG tooltip pattern"
Browse files Browse the repository at this point in the history
This reverts commit 9241dff.
  • Loading branch information
Michael Cooper committed Jul 6, 2023
1 parent 809d5bf commit 1fd5e9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 2 additions & 15 deletions guidelines/guidelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,27 +165,14 @@ function addStatusMarkers() {
// Insert div after the first heading:
*/
var sectionId = section.id;

var container = document.createElement("div");
container.setAttribute("class", "tooltip-container");

var button = document.createElement("button");
button.setAttribute('class', 'addition status-filter sticky');
button.setAttribute("title", statusLabels[status]);
button.setAttribute("type", "button");
button.setAttribute("aria-describedby", sectionId + "-status-tooltip");
button.innerHTML = sentenceCase(status);
container.appendChild(button);

var p = document.createElement("p");
p.setAttribute("id", sectionId + "-status-tooltip");
p.setAttribute("role", "tooltip");
p.setAttribute("class", "hidden");
p.innerHTML = statusLabels[status];
container.appendChild(p);

var wrapper = section.querySelector('.header-wrapper');
wrapper.appendChild(container);
wrapper.appendChild(button);
})
});
}
Expand Down
2 changes: 0 additions & 2 deletions guidelines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<script src="respec-config.js" class="remove"></script>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove"></script>
<script src="wcag3.js"></script>
<link rel="stylesheet" type="text/css" href="tooltips.css" />
<link rel="stylesheet" type="text/css" href="guidelines.css" />
</head>
<body>
Expand Down Expand Up @@ -851,6 +850,5 @@ <h3>Prior Contributers</h3>
</section>
<div data-include="../acknowledgements/funders.html" data-include-replace="true"></div>
</section>
<script src="tooltips.js"></script>
</body>
</html>

0 comments on commit 1fd5e9b

Please sign in to comment.