what if icon fonts
This commit is contained in:
parent
ff810f8d59
commit
32da09fdb7
1 changed files with 4 additions and 0 deletions
|
@ -604,6 +604,7 @@ class WindowObject {
|
||||||
if (!srcdoc) {
|
if (!srcdoc) {
|
||||||
const windowNewButton = document.createElement("button");
|
const windowNewButton = document.createElement("button");
|
||||||
windowNewButton.innerHTML = "open_in_new";
|
windowNewButton.innerHTML = "open_in_new";
|
||||||
|
windowDestroyButton.ariaLabel = "Open Window Content In New Tab";
|
||||||
windowNewButton.classList.add("window-new-button");
|
windowNewButton.classList.add("window-new-button");
|
||||||
windowNewButton.addEventListener("click", () => window.open(content));
|
windowNewButton.addEventListener("click", () => window.open(content));
|
||||||
windowNewButton.addEventListener("touchstart", (e) =>
|
windowNewButton.addEventListener("touchstart", (e) =>
|
||||||
|
@ -619,6 +620,7 @@ class WindowObject {
|
||||||
{
|
{
|
||||||
const windowMinimizeButton = document.createElement("button");
|
const windowMinimizeButton = document.createElement("button");
|
||||||
windowMinimizeButton.innerHTML = "minimize";
|
windowMinimizeButton.innerHTML = "minimize";
|
||||||
|
windowDestroyButton.ariaLabel = "Minimize Window";
|
||||||
windowMinimizeButton.classList.add("window-minimize-button");
|
windowMinimizeButton.classList.add("window-minimize-button");
|
||||||
windowMinimizeButton.addEventListener("click", () =>
|
windowMinimizeButton.addEventListener("click", () =>
|
||||||
windowRef.minimizeWindow()
|
windowRef.minimizeWindow()
|
||||||
|
@ -636,6 +638,7 @@ class WindowObject {
|
||||||
{
|
{
|
||||||
const windowMaximizeButton = document.createElement("button");
|
const windowMaximizeButton = document.createElement("button");
|
||||||
windowMaximizeButton.innerHTML = "maximize";
|
windowMaximizeButton.innerHTML = "maximize";
|
||||||
|
windowDestroyButton.ariaLabel = "Maximize Window";
|
||||||
windowMaximizeButton.classList.add("window-maximize-button");
|
windowMaximizeButton.classList.add("window-maximize-button");
|
||||||
windowMaximizeButton.ariaHidden = true; // esoteric operation to screen-reader users
|
windowMaximizeButton.ariaHidden = true; // esoteric operation to screen-reader users
|
||||||
windowMaximizeButton.addEventListener("click", () =>
|
windowMaximizeButton.addEventListener("click", () =>
|
||||||
|
@ -654,6 +657,7 @@ class WindowObject {
|
||||||
{
|
{
|
||||||
const windowDestroyButton = document.createElement("button");
|
const windowDestroyButton = document.createElement("button");
|
||||||
windowDestroyButton.innerHTML = "close";
|
windowDestroyButton.innerHTML = "close";
|
||||||
|
windowDestroyButton.ariaLabel = "Close Window";
|
||||||
windowDestroyButton.classList.add("window-destroy-button");
|
windowDestroyButton.classList.add("window-destroy-button");
|
||||||
windowDestroyButton.ariaHidden = true;
|
windowDestroyButton.ariaHidden = true;
|
||||||
windowDestroyButton.addEventListener("click", () =>
|
windowDestroyButton.addEventListener("click", () =>
|
||||||
|
|
Loading…
Reference in a new issue