diff --git a/build/98.css b/build/98.css index 761c0e2..7b8efd7 100644 --- a/build/98.css +++ b/build/98.css @@ -133,7 +133,7 @@ button:focus { align-items: center; } -.title-bar-title { +.title-bar-text { font-weight: bold; color: white; letter-spacing: 0; diff --git a/docs/98.css b/docs/98.css index 761c0e2..7b8efd7 100644 --- a/docs/98.css +++ b/docs/98.css @@ -133,7 +133,7 @@ button:focus { align-items: center; } -.title-bar-title { +.title-bar-text { font-weight: bold; color: white; letter-spacing: 0; diff --git a/docs/index.html b/docs/index.html index 36b4769..a5c5cbc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,8 +24,7 @@ Window
Include command buttons associated with the common commands of the primary window in the title bar. These buttons act as shortcuts to specific @@ -592,6 +586,57 @@ — Microsoft Windows User Experience p. 122+ +
+ You can build a complete title bar by making use of three classes,
+ title-bar
, title-bar-text
, and title-bar-controls
.
+
<div class="title-bar">
+ <div class="title-bar-text">A Title Bar</div>
+ <div class="title-bar-controls">
+ <button aria-label="Close"></button>
+ </div>
+</div>
+
+ We make use of aria-label
to render the Close button, to let
+ assistive technologies know the intent of this button. You may also use
+ "Minimize" and "Maximize" like so:
+
<div class="title-bar">
+ <div class="title-bar-text">A Title Bar</div>
+ <div class="title-bar-controls">
+ <button aria-label="Minimize"></button>
+ <button aria-label="Maximize"></button>
+ <button aria-label="Close"></button>
+ </div>
+</div>
+ - Include command buttons associated with the common commands of the - primary window in the title bar. These buttons act as shortcuts to specific - window commands. + Every window has a boundary that defines its shape.+ +
+ To give our title bar a home, we make use of the window
+ class. This provides a raised outer and inner border, as well as some
+ padding. We can freely resize the window by specifying a width in the
+ container style.
+
<div class="window" style="width: 350px">
+ <div class="title-bar">
+ <div class="title-bar-text">A Complete Window</div>
+ <div class="title-bar-controls">
+ <button aria-label="Minimize"></button>
+ <button aria-label="Maximize"></button>
+ <button aria-label="Close"></button>
+ </div>
+ </div>
+</div>
+
+ To draw the contents of the window, we use the window-body
+ class under the title bar.
+
There's so much room for activities!
+<div class="window" style="width: 350px">
+ <div class="title-bar">
+ <div class="title-bar-text">A Window With Stuff In It</div>
+ <div class="title-bar-controls">
+ <button aria-label="Minimize"></button>
+ <button aria-label="Maximize"></button>
+ <button aria-label="Close"></button>
+ </div>
+ </div>
+ <div class="window-body">
+ <p>There's so much room for activities!</p>
+ </div>
+</div>
+ Include command buttons associated with the common commands of the primary window in the title bar. These buttons act as shortcuts to specific @@ -439,6 +433,37 @@ — Microsoft Windows User Experience p. 122+ +
+ You can build a complete title bar by making use of three classes,
+ title-bar
, title-bar-text
, and title-bar-controls
.
+
+ We make use of aria-label
to render the Close button, to let
+ assistive technologies know the intent of this button. You may also use
+ "Minimize" and "Maximize" like so:
+
- Include command buttons associated with the common commands of the - primary window in the title bar. These buttons act as shortcuts to specific - window commands. + Every window has a boundary that defines its shape.+ +
+ To give our title bar a home, we make use of the window
+ class. This provides a raised outer and inner border, as well as some
+ padding. We can freely resize the window by specifying a width in the
+ container style.
+
+ To draw the contents of the window, we use the window-body
+ class under the title bar.
+
There's so much room for activities!
+