-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat(a11y): Add keyboard accessibility to AT node authoring (#1950)
* Allow lesson titles to fill container width
Showing
10 changed files
with
260 additions
and
352 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...l/components/edit-component-advanced-button/edit-component-advanced-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...authoringTool/components/preview-component-button/preview-component-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<button | ||
mat-icon-button | ||
color="primary" | ||
matTooltip="Preview component" | ||
matTooltipPosition="above" | ||
i18n-matTooltip | ||
(click)="$event.stopPropagation(); popUpComponentPreview()" | ||
(keydown)="$event.stopPropagation()" | ||
> | ||
<mat-icon>preview</mat-icon> | ||
</button> |
4 changes: 2 additions & 2 deletions
4
...ssets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
167 changes: 55 additions & 112 deletions
167
src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,64 @@ | ||
@import | ||
'style/abstracts/variables', | ||
'style/abstracts/functions'; | ||
|
||
.top-button-bar { | ||
padding: 16px 8px 4px; | ||
background-color: white; | ||
position: sticky; | ||
top: 26px; | ||
z-index: 2; | ||
} | ||
|
||
.node-title { | ||
width: 50%; | ||
} | ||
|
||
.node-buttons { | ||
margin: 8px 0; | ||
} | ||
|
||
.insert-component-message { | ||
margin-top: 10px; | ||
} | ||
|
||
.insert-as-first-component-div { | ||
margin: 10px 30px; | ||
} | ||
|
||
.insert-as-first-component-message { | ||
font-weight: bold; | ||
} | ||
|
||
.no-components-message { | ||
margin-left: 45px; | ||
margin-top: 45px; | ||
font-size: 1em; | ||
font-weight: bold; | ||
} | ||
|
||
.components-header { | ||
margin-top: 8px; | ||
margin-left: 8px; | ||
margin-right: 8px; | ||
} | ||
|
||
.component { | ||
margin: 4px 16px 16px; | ||
border: 2px solid #dddddd; | ||
border-radius: 6px; | ||
position: relative; | ||
} | ||
|
||
.component-header { | ||
height: 48px; | ||
padding: 0px 20px 0px 10px; | ||
cursor: pointer; | ||
} | ||
|
||
.component-header-highlight:hover { | ||
background-color: #add8e6; | ||
} | ||
|
||
.component-label { | ||
font-weight: bold; | ||
} | ||
|
||
.component-expand-collapse-div { | ||
flex-grow: 1; | ||
align-self: stretch; | ||
} | ||
|
||
.dynamic-component-button { | ||
display: none; | ||
margin-right: 20px; | ||
&.show-dynamic-component-button { | ||
display: block; | ||
.node-authoring { | ||
.node-authoring-header { | ||
margin: 8px 8px 0; | ||
} | ||
} | ||
|
||
.component-header:hover .dynamic-component-button { | ||
display: block; | ||
} | ||
|
||
.component-authoring { | ||
padding: 0px 20px; | ||
} | ||
|
||
.insert-after-div { | ||
margin: 0px 30px; | ||
} | ||
.node-authoring-controls { | ||
padding: 8px 16px; | ||
background-color: white; | ||
position: sticky; | ||
top: 0; | ||
z-index: 2; | ||
} | ||
|
||
.mat-icon { | ||
margin: 0px; | ||
} | ||
.component { | ||
flex: 1; | ||
|
||
.mat-expansion-panel-header { | ||
padding-inline-start: 8px; | ||
} | ||
|
||
.mat-expansion-panel-header-title { | ||
flex-grow: 100; | ||
} | ||
|
||
.mat-expansion-panel-body { | ||
padding-left: 16px; | ||
padding-right: 16px; | ||
} | ||
|
||
&:hover, &:focus-within, &.mat-expanded { | ||
.component-action { | ||
display: block; | ||
} | ||
} | ||
|
||
&.mat-expanded { | ||
edit-component-advanced-button { | ||
display: block; | ||
} | ||
} | ||
} | ||
|
||
.add-component { | ||
position: absolute; | ||
bottom: 24px; | ||
height: 0px; | ||
width: 100%; | ||
text-align: center; | ||
z-index: 1; | ||
} | ||
edit-component-advanced-button { | ||
display: none; | ||
} | ||
|
||
.drag-handle { | ||
cursor: move; | ||
margin-right: 4px; | ||
margin-left: 4px; | ||
} | ||
.component-action { | ||
display: none; | ||
} | ||
|
||
.cdk-drag-placeholder { | ||
opacity: .4; | ||
} | ||
.drag-handle { | ||
cursor: move; | ||
margin-right: 4px; | ||
margin-left: 4px; | ||
} | ||
|
||
mat-icon[disabled=true] { | ||
opacity: .5; | ||
} | ||
.cdk-drag-placeholder { | ||
opacity: .4; | ||
} | ||
|
||
.component-label { | ||
color: rgba(0,0,0,.87); | ||
.mat-icon { | ||
margin: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters