Skip to content

Commit

Permalink
Fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPeek committed Feb 27, 2018
1 parent 49f615e commit 9e2a2bd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ The attributes listed below are used in *components.json* to configure **Text En
>>**ariaLabel** (string): This text becomes the button’s `Aria label` attribute.
## Accessibility
Several elements of **Toolbox** have been assigned a label using the [aria-label](https://github.com/adaptlearning/adapt_framework/wiki/Aria-Labels) attribute: **Toolbox**. These labels are not visible elements. They are utilized by assistive technology such as screen readers.
Several elements of **Text Entry** have been assigned a label using the [aria-label](https://github.com/adaptlearning/adapt_framework/wiki/Aria-Labels) attribute: **Text Entry**. These labels are not visible elements. They are utilized by assistive technology such as screen readers.

## Limitations

No known limitations.

----------------------------
**Version number:** 3.0.7
**Version number:** 3.0.8
**Framework versions supported:** 2.0.3
**Author / maintainer:** DeltaNet with [contributors](https://github.com/deltanet/adapt-textEntry-audio/graphs/contributors)
**Accessibility support:** yes
Expand Down
5 changes: 1 addition & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"name": "adapt-textEntry-audio",
"version": "3.0.7",
"version": "3.0.8",
"framework": "^2.0.3",
"homepage": "https://github.com/deltanet/adapt-textEntry-audio",
"issues": "https://github.com/deltanet/adapt-textEntry-audio/issues",
"description": "A simple text entry component with optional audio",
"main": "/js/adapt-textEntry-audio.js",
"displayName" : "Text Entry Audio",
"component" : "textEntry-audio",
"assetFields" : [
"_feedback._audio.src"
],
"keywords": [
"adapt-plugin",
"adapt-component"
Expand Down
11 changes: 10 additions & 1 deletion less/textEntry-audio.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
margin-right: auto;
}

.buttons {
text-align: center;
.button {
width: auto;
float: none;
}
margin-bottom: 0;
}

.textEntry-audio-item-textbox {
border: 1px solid @item-color;
display: block;
Expand Down Expand Up @@ -55,4 +64,4 @@
}
}

}
}
2 changes: 2 additions & 0 deletions templates/textEntry-audio.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
<div class="textEntry-audio-input">
<textarea placeholder="{{placeholder}}" class="textEntry-audio-item-textbox" cols="2" rows="10"></textarea>
</div>
<div class="buttons">
<button class="textEntry-audio-button button" role="button" aria-label="{{_buttons._submit.ariaLabel}}">
{{_buttons._submit.buttonText}}
</button>
</div>
</div>
</div>

0 comments on commit 9e2a2bd

Please sign in to comment.