@@ -100,60 +100,64 @@ <h2 id="button with icon"><a href="#button-with-icon">button with icon</a></h2>
100100 < script > showSource ( 'button-with-icon' ) </ script >
101101 < div id ="div-button-with-icon "> </ div >
102102
103- < h2 id ="button-with-text "> < a href ="#button-with-text-primary-filled "> button with text</ a > </ h2 >
104- < script id ="script-button-with-text ">
103+ < h2 id ="button-with-text-primary-no-border "> < a href ="#button-with-text-primary-no-border "> button with text</ a > </ h2 >
104+ < script id ="script-button-with-text-primary-no-border ">
105105 window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
106- $ ( '#div-button-with-text' ) . appendChild (
106+ $ ( '#div-button-with-text-primary-no-border ' ) . appendChild (
107107 UI . widgets . button ( document , undefined , 'test' , ( ) => {
108108 window . alert ( 'clicked!' )
109- } , { buttonType : UI . widgets . ButtonType . Primary , filled : true } )
109+ } , { buttonType : UI . widgets . ButtonType . Primary , needsBorder : false } )
110110 )
111111 } )
112112 </ script >
113- < pre id ="viewSource-button-with-text "> </ pre >
114- < script > showSource ( 'button-with-text' ) </ script >
115- < div id ="div-button-with-text "> </ div >
113+ < pre id ="viewSource-button-with-text-primary-no-border "> </ pre >
114+ < script > showSource ( 'button-with-text-primary-no-border ' ) </ script >
115+ < div id ="div-button-with-text-primary-no-border "> </ div >
116116
117- < h2 id ="button-with-text "> < a href ="#button-with-text-primary-notfilled "> button with text</ a > </ h2 >
118- < script id ="script-button-with-text ">
117+ < h2 id ="button-with-text-primary-needs-border "> < a href ="#button-with-text-primary-needs-border "> button with text</ a >
118+ </ h2 >
119+ < script id ="script-button-with-text-primary-needs-border ">
119120 window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
120- $ ( '#div-button-with-text' ) . appendChild (
121+ $ ( '#div-button-with-text-primary-needs-border ' ) . appendChild (
121122 UI . widgets . button ( document , undefined , 'test' , ( ) => {
122123 window . alert ( 'clicked!' )
123- } , { buttonType : UI . widgets . ButtonType . Primary , filled : false } )
124+ } , { buttonType : UI . widgets . ButtonType . Primary , needsBorder : true } )
124125 )
125126 } )
126127 </ script >
127- < pre id ="viewSource-button-with-text "> </ pre >
128- < script > showSource ( 'button-with-text' ) </ script >
129- < div id ="div-button-with-text "> </ div >
128+ < pre id ="viewSource-button-with-text-primary-needs-border "> </ pre >
129+ < script > showSource ( 'button-with-text-primary-needs-border ' ) </ script >
130+ < div id ="div-button-with-text-primary-needs-border "> </ div >
130131
131- < h2 id ="button-with-text "> < a href ="#button-with-text-secondary-filled "> button with text</ a > </ h2 >
132- < script id ="script-button-with-text ">
132+ < h2 id ="button-with-text-secondary-no-border "> < a href ="#button-with-text-secondary-no-border "> button with text</ a >
133+ </ h2 >
134+ < script id ="script-button-with-text-secondary-no-border ">
133135 window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
134- $ ( '#div-button-with-text' ) . appendChild (
136+ $ ( '#div-button-with-text-secondary-no-border ' ) . appendChild (
135137 UI . widgets . button ( document , undefined , 'test' , ( ) => {
136138 window . alert ( 'clicked!' )
137- } , { buttonType : UI . widgets . ButtonType . Secondary , filled : true } )
139+ } , { buttonType : UI . widgets . ButtonType . Secondary , needsBorder : false } )
138140 )
139141 } )
140142 </ script >
141- < pre id ="viewSource-button-with-text "> </ pre >
142- < script > showSource ( 'button-with-text' ) </ script >
143- < div id ="div-button-with-text "> </ div >
144- < h2 id ="button-with-text "> < a href ="#button-with-text-secondary-notfilled "> button with text</ a > </ h2 >
145- < script id ="script-button-with-text ">
143+ < pre id ="viewSource-button-with-text-secondary-no-border "> </ pre >
144+ < script > showSource ( 'button-with-text-secondary-no-border' ) </ script >
145+ < div id ="div-button-with-text-secondary-no-border "> </ div >
146+
147+ < h2 id ="button-with-text-secondary-needs-border "> < a href ="#button-with-text-secondary-needs-border "> button with
148+ text</ a > </ h2 >
149+ < script id ="script-button-with-text-secondary-needs-border ">
146150 window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
147- $ ( '#div-button-with-text' ) . appendChild (
151+ $ ( '#div-button-with-text-secondary-needs-border ' ) . appendChild (
148152 UI . widgets . button ( document , undefined , 'test' , ( ) => {
149153 window . alert ( 'clicked!' )
150- } , { buttonType : UI . widgets . ButtonType . Secondary , filled : false } )
154+ } , { buttonType : UI . widgets . ButtonType . Secondary , needsBorder : true } )
151155 )
152156 } )
153157 </ script >
154- < pre id ="viewSource-button-with-text "> </ pre >
155- < script > showSource ( 'button-with-text' ) </ script >
156- < div id ="div-button-with-text "> </ div >
158+ < pre id ="viewSource-button-with-text-secondary-needs-border "> </ pre >
159+ < script > showSource ( 'button-with-text-secondary-needs-border ' ) </ script >
160+ < div id ="div-button-with-text-secondary-needs-border "> </ div >
157161
158162 < h2 id ="cancelButton "> < a href ="#cancelButton "> cancelButton</ a > </ h2 >
159163 < script id ="script-cancelButton ">
0 commit comments