Skip to content

Commit

Permalink
Added validation for osx or ios
Browse files Browse the repository at this point in the history
  • Loading branch information
BenOsodrac committed Aug 30, 2023
1 parent bf0c2b3 commit 1225f58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/OutSystemsUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -10637,7 +10637,9 @@ var OSFramework;
setA11YProperties(isUpdate = true) {
if (isUpdate === false) {
OSUI.Helper.A11Y.RoleTab(this.selfElement);
OSUI.Helper.A11Y.RolePresentation(this.selfElement.parentElement);
if (OSUI.Helper.DeviceInfo.IsIos || OSUI.Helper.DeviceInfo.GetOperatingSystem() === OSUI.GlobalEnum.MobileOS.MacOS) {
OSUI.Helper.A11Y.RolePresentation(this.selfElement.parentElement);
}
}
if (this._isActive) {
OSUI.Helper.A11Y.TabIndexTrue(this.selfElement);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ namespace OSFramework.OSUI.Patterns.TabsHeaderItem {
// Static attribute to be added when the item is created
if (isUpdate === false) {
Helper.A11Y.RoleTab(this.selfElement);
Helper.A11Y.RolePresentation(this.selfElement.parentElement);

// Workaround for VoiceOver support
if(Helper.DeviceInfo.IsIos || Helper.DeviceInfo.GetOperatingSystem() === GlobalEnum.MobileOS.MacOS) {
Helper.A11Y.RolePresentation(this.selfElement.parentElement);
}
}

// Dynamic values that need to be changed when toggling the active state
Expand Down

0 comments on commit 1225f58

Please sign in to comment.