@@ -495,7 +495,7 @@ const StepsIndicator = props => {
495
495
let steps = [ ] ;
496
496
for ( let i = 0 ; i < props . totalNumberOfScreens ; i ++ ) {
497
497
let className = `${ i === props . order ? "current" : "" } ${ i < props . order ? "complete" : "" } ` ;
498
- steps . push ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( "div" , {
498
+ steps . push ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( "div" , {
499
499
key : i ,
500
500
className : `indicator ${ className } ` ,
501
501
role : "presentation"
@@ -832,7 +832,7 @@ const Localized = ({
832
832
// Add zap style and content in a way that allows fluent to insert too.
833
833
if ( text . zap ) {
834
834
props . className += " welcomeZap" ;
835
- textNodes . push ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( "span" , {
835
+ textNodes . push ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( "span" , {
836
836
className : "short zap" ,
837
837
"data-l10n-name" : "zap" ,
838
838
ref : zapRef
@@ -1211,7 +1211,7 @@ class ProtonScreen extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCom
1211
1211
for ( const item of content ) {
1212
1212
switch ( item . type ) {
1213
1213
case "text" :
1214
- elements . push ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( _LinkParagraph__WEBPACK_IMPORTED_MODULE_9__ . LinkParagraph , {
1214
+ elements . push ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( _LinkParagraph__WEBPACK_IMPORTED_MODULE_9__ . LinkParagraph , {
1215
1215
text_content : item ,
1216
1216
handleAction : this . props . handleAction
1217
1217
} ) ) ;
@@ -1850,7 +1850,6 @@ const SubmenuButtonInner = ({
1850
1850
handleAction
1851
1851
} ) => {
1852
1852
const ref = ( 0 , react__WEBPACK_IMPORTED_MODULE_0__ . useRef ) ( null ) ;
1853
- const [ isSubmenuExpanded , setIsSubmenuExpanded ] = ( 0 , react__WEBPACK_IMPORTED_MODULE_0__ . useState ) ( false ) ;
1854
1853
const isPrimary = content . submenu_button ?. style === "primary" ;
1855
1854
const onCommand = ( 0 , react__WEBPACK_IMPORTED_MODULE_0__ . useCallback ) ( event => {
1856
1855
let {
@@ -1894,13 +1893,11 @@ const SubmenuButtonInner = ({
1894
1893
menupopup . addEventListener ( "popupshowing" , event => {
1895
1894
if ( event . target === menupopup && event . target . anchorNode ) {
1896
1895
event . target . anchorNode . toggleAttribute ( "open" , true ) ;
1897
- setIsSubmenuExpanded ( true ) ;
1898
1896
}
1899
1897
} ) ;
1900
1898
menupopup . addEventListener ( "popuphiding" , event => {
1901
1899
if ( event . target === menupopup && event . target . anchorNode ) {
1902
1900
event . target . anchorNode . toggleAttribute ( "open" , false ) ;
1903
- setIsSubmenuExpanded ( false ) ;
1904
1901
}
1905
1902
} ) ;
1906
1903
menupopup . listenersRegistered = true ;
@@ -1917,9 +1914,7 @@ const SubmenuButtonInner = ({
1917
1914
className : `submenu-button ${ isPrimary ? "primary" : "secondary" } ` ,
1918
1915
value : "submenu_button" ,
1919
1916
onClick : onClick ,
1920
- ref : ref ,
1921
- "aria-haspopup" : "menu" ,
1922
- "aria-expanded" : isSubmenuExpanded
1917
+ ref : ref
1923
1918
} ) ) ;
1924
1919
} ;
1925
1920
@@ -3159,7 +3154,7 @@ ReturnToAMO.defaultProps = _lib_aboutwelcome_utils_mjs__WEBPACK_IMPORTED_MODULE_
3159
3154
/******/
3160
3155
/************************************************************************/
3161
3156
var __webpack_exports__ = { } ;
3162
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
3157
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
3163
3158
( ( ) => {
3164
3159
__webpack_require__ . r ( __webpack_exports__ ) ;
3165
3160
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( 1 ) ;
@@ -3295,7 +3290,7 @@ async function mount() {
3295
3290
messageId,
3296
3291
UTMTerm
3297
3292
} = await retrieveRenderContent ( ) ;
3298
- react_dom__WEBPACK_IMPORTED_MODULE_1___default ( ) . render ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( AboutWelcome , _extends ( {
3293
+ react_dom__WEBPACK_IMPORTED_MODULE_1___default ( ) . render ( /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default ( ) . createElement ( AboutWelcome , _extends ( {
3299
3294
messageId : messageId ,
3300
3295
UTMTerm : UTMTerm
3301
3296
} , aboutWelcomeProps ) ) , document . getElementById ( "multi-stage-message-root" ) ) ;
0 commit comments