Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/RoleObjects/DialogData.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import AccessibilityObject from './AccessibilityObject';

export default class DialogData extends AccessibilityObject {
/**
* Sets whether the element should get expanded
* Sets whether the dialog element is expanded or collapsed.
* When expanded, the dialog's content is visible to the user.
* @access public
* @param {boolean} val - true if expanded, false if not expanded, undefined if the field is unset
*/
Expand All @@ -11,7 +12,8 @@ export default class DialogData extends AccessibilityObject {
}

/**
* Retrieves whether expanded
* Retrieves whether the dialog element is expanded or collapsed.
* Checks the 'aria-expanded' property in the underlying React props.
* @access public
* @returns {boolean} true if expanded, false if not expanded, undefined if the field is unset
*/
Expand Down