@@ -476,15 +476,15 @@ var link = (function(){
476476form . querySelector ( ".link-form-input-icon" ) . setAttribute ( "disabled" , "" ) ;
477477form . querySelector ( ".form-group-text" ) . setAttribute ( "disabled" , "" ) ;
478478form . querySelector ( ".link-form-input-icon" ) . setAttribute ( "disabled" , "" ) ;
479- form . querySelector ( ".link-form-input-helper- icon" ) . setAttribute ( "disabled" , "" ) ;
479+ helper . addClass ( form . querySelector ( ".link-form-input-icon-helper" ) , "disabled " ) ;
480480form . querySelector ( ".link-form-icon-clear" ) . setAttribute ( "disabled" , "" ) ;
481481form . querySelector ( ".link-form-text-icon" ) . tabIndex = - 1 ;
482482} else if ( stagedLink . data . display == "icon" ) {
483483form . querySelector ( ".link-form-input-letter" ) . setAttribute ( "disabled" , "" ) ;
484484form . querySelector ( ".link-form-input-icon" ) . removeAttribute ( "disabled" ) ;
485485form . querySelector ( ".form-group-text" ) . removeAttribute ( "disabled" ) ;
486486form . querySelector ( ".link-form-input-icon" ) . removeAttribute ( "disabled" ) ;
487- form . querySelector ( ".link-form-input-helper- icon" ) . removeAttribute ( "disabled" ) ;
487+ helper . removeClass ( form . querySelector ( ".link-form-input-icon-helper" ) , "disabled" ) ;
488488form . querySelector ( ".link-form-icon-clear" ) . removeAttribute ( "disabled" ) ;
489489form . querySelector ( ".link-form-input-display-icon" ) . checked = true ;
490490form . querySelector ( ".link-form-text-icon" ) . tabIndex = 1 ;
@@ -593,20 +593,20 @@ var link = (function(){
593593var iconFormGroupText = helper . node ( "div|class:form-group-text link-form-text-icon,tabindex:-1,disabled" ) ;
594594var iconFormGroupClear = helper . node ( "button|class:link-form-icon-clear button mb-0,type:button,tabindex:1,disabled" ) ;
595595var iconFormGroupClearIcon = helper . node ( "span|class:icon-close" ) ;
596- var iconPara = helper . node ( "p:Refer to the \"Free\" and \"Brand\" icons from FontAwesome for full set of icons supported.|class:link-form-input-helper- icon input -helper small muted, disabled" ) ;
596+ var iconPara = helper . node ( "p:Refer to the \"Free\" and \"Brand\" icons from FontAwesome for full set of icons supported.|class:link-form-input-icon-helper form -helper small muted disabled" ) ;
597597var nameInputWrap = helper . node ( "div|class:input-wrap" ) ;
598598var nameLabel = helper . node ( "label:Name|for:link-form-input-name" ) ;
599599var nameInput = helper . node ( "input|type:text,class:link-form-input-name mb-0,id:link-form-input-name,placeholder:Example,tabindex:1,autocomplete:off,autocorrect:off,autocapitalize:off,spellcheck:false" ) ;
600600var urlInputWrap = helper . node ( "div|class:input-wrap" ) ;
601601var urlLabel = helper . node ( "label:URL|for:link-form-input-url" ) ;
602602var urlInput = helper . node ( "input|type:text,class:link-form-input-url mb-0,id:link-form-input-url,placeholder:https://www.example.com/,tabindex:1,autocomplete:off,autocorrect:off,autocapitalize:off,spellcheck:false" ) ;
603603var colorWrap = helper . node ( "div|class:input-wrap" ) ;
604- var colorFormGroup = helper . node ( "div|class:form-group" ) ;
604+ var colorFormGroup = helper . node ( "div|class:form-group mb-0 " ) ;
605605var colorLabel = helper . node ( "label:Accent override|for:link-form-input-color" ) ;
606606var colorInput = helper . node ( "input|id:link-form-input-color,class:link-form-input-color mb-0,type:color,value:" + helper . rgbToHex ( state . get ( ) . theme . accent . current ) + ",tabindex:1" ) ;
607607var colorButtonRefresh = helper . node ( "button|class:button mb-0,type:button,tabindex:1" ) ;
608608var colorButtonRefreshIcon = helper . node ( "span|class:icon-refresh" ) ;
609- var colorPara = helper . node ( "p:Use this colour to override the global Accent colour.|class:input -helper small muted" ) ;
609+ var colorInputHelper = helper . node ( "p:Use this colour to override the global Accent colour.|class:form -helper small muted" ) ;
610610var letterRadioInputWrap = helper . node ( "div|class:input-wrap" ) ;
611611var letterRadioInput = helper . node ( "input|class:link-form-input-display-letter,id:link-form-input-display-letter,type:radio,name:link-form-input-display,tabindex:1,checked,value:letter" ) ;
612612var letterRadioLable = helper . node ( "label:Letters|for:link-form-input-display-letter" ) ;
@@ -644,8 +644,8 @@ var link = (function(){
644644colorFormGroup . appendChild ( colorButtonRefresh ) ;
645645colorWrap . appendChild ( colorLabel ) ;
646646colorWrap . appendChild ( colorFormGroup ) ;
647- colorWrap . appendChild ( colorPara ) ;
648647fieldset . appendChild ( colorWrap ) ;
648+ fieldset . appendChild ( colorInputHelper ) ;
649649form . appendChild ( fieldset ) ;
650650
651651letterRadioInput . addEventListener ( "change" , function ( event ) {
@@ -690,15 +690,15 @@ var link = (function(){
690690letterInput . removeAttribute ( "disabled" ) ;
691691iconInput . setAttribute ( "disabled" , "" ) ;
692692iconFormGroupText . setAttribute ( "disabled" , "" ) ;
693- iconPara . setAttribute ( "disabled" , "" ) ;
693+ helper . addClass ( form . querySelector ( ".link-form-input-icon-helper" ) , "disabled " ) ;
694694iconFormGroupClear . setAttribute ( "disabled" , "" ) ;
695695iconFormGroupText . tabIndex = - 1 ;
696696} , false ) ;
697697iconRadioInput . addEventListener ( "change" , function ( event ) {
698698letterInput . setAttribute ( "disabled" , "" ) ;
699699iconInput . removeAttribute ( "disabled" ) ;
700700iconFormGroupText . removeAttribute ( "disabled" ) ;
701- iconPara . removeAttribute ( "disabled" ) ;
701+ helper . removeClass ( form . querySelector ( ".link-form-input-icon-helper" ) , "disabled" ) ;
702702iconFormGroupClear . removeAttribute ( "disabled" ) ;
703703iconFormGroupText . tabIndex = 1 ;
704704} , false ) ;
0 commit comments