This is an automated email from the ASF dual-hosted git repository.
greg-dove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 0f4b67ebcf quick changes to get Accordion disabled mode working (i.e.
*not* working)
0f4b67ebcf is described below
commit 0f4b67ebcf7348ef268ebd794fb9bac879b0e3f2
Author: greg-dove <[email protected]>
AuthorDate: Mon Apr 20 16:46:24 2026 +1200
quick changes to get Accordion disabled mode working (i.e. *not* working)
---
.../main/royale/org/apache/royale/style/AccordionSection.as | 4 ++--
.../org/apache/royale/style/skins/AccordionSectionSkin.as | 10 ++++++----
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/AccordionSection.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/AccordionSection.as
index ed913ebdfa..2dd6e378d0 100644
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/AccordionSection.as
+++
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/AccordionSection.as
@@ -63,8 +63,8 @@ package org.apache.royale.style
if(value != _disabled){
_disabled = value;
- toggleAttribute("disabled", value);
- headerElem.toggleAttribute("disabled", value);
+ toggleAttribute("data-disabled", value);
+ headerElem.toggleAttribute("data-disabled", value);
}
}
private var _open:Boolean = false;
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/AccordionSectionSkin.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/AccordionSectionSkin.as
index 5c6db1bd66..1271810d64 100644
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/AccordionSectionSkin.as
+++
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/AccordionSectionSkin.as
@@ -23,6 +23,7 @@ package org.apache.royale.style.skins
import org.apache.royale.core.IStrand;
import org.apache.royale.style.IStyleUIBase;
import org.apache.royale.style.Icon;
+ import org.apache.royale.style.stylebeads.interact.PointerEvents;
import org.apache.royale.style.stylebeads.sizing.HeightStyle;
import org.apache.royale.style.stylebeads.sizing.WidthStyle;
import org.apache.royale.style.colors.ThemeColorSet;
@@ -86,10 +87,10 @@ package org.apache.royale.style.skins
new LastState([
lastBorder
]),
- new DisabledState([
+ new DataState('disabled',[
new
BorderColor(colorSet.getSwatch(ThemeColorSet.NEUTRAL,200)),
new
BackgroundColor(colorSet.getSwatch(ThemeColorSet.NEUTRAL,100)),
- new
TextColor(colorSet.getSwatch(ThemeColorSet.NEUTRAL,200))
+ new
TextColor(colorSet.getSwatch(ThemeColorSet.NEUTRAL,200)),
])
//TODO dark mode dark:border-slate-700
dark:bg-slate-800
// group border-b border-slate-300 bg-slate-50
px-4 last:border-b-0 dark:border-slate-700 dark:bg-slate-800
@@ -114,9 +115,10 @@ package org.apache.royale.style.skins
padding,
new TextSize("sm"),
new FontWeight("semibold"),
- new DisabledState([
+ new DataState('disabled',[
new Cursor("default"),
- new
TextColor(ThemeManager.instance.activeTheme.themeColorSet.getSwatch(ThemeColorSet.NEUTRAL,200))
+ new
TextColor(ThemeManager.instance.activeTheme.themeColorSet.getSwatch(ThemeColorSet.NEUTRAL,200)),
+ new PointerEvents('none')
])
];
// flex cursor-pointer list-none items-center
justify-between py-3 text-sm font-semibold