@@ -154,7 +154,7 @@ export const DocumentBlockForm = ({
154154 { ! isCollapsed && (
155155 < >
156156 { ! currentBlockData . id && (
157- < fieldset >
157+ < fieldset className = { classes . fieldset } >
158158 < label htmlFor = "block_type" > Type</ label >
159159 < select
160160 name = "type"
@@ -172,41 +172,47 @@ export const DocumentBlockForm = ({
172172 </ fieldset >
173173 ) }
174174 { [ 'heading2' , 'heading3' ] . includes ( currentBlockData . type ) && (
175- < Input
176- id = { `title_${ currentBlockData . id } ` }
177- label = "Title"
178- name = "title"
179- type = "text"
180- value = { currentBlockData . title || '' }
181- onChange = { handleChange }
182- required
183- />
175+ < fieldset className = { classes . fieldset } >
176+ < Input
177+ id = { `title_${ currentBlockData . id } ` }
178+ label = "Title"
179+ name = "title"
180+ type = "text"
181+ value = { currentBlockData . title || '' }
182+ onChange = { handleChange }
183+ required
184+ />
185+ </ fieldset >
184186 ) }
185187 { [ 'paragraph' , 'list' , 'quote' ] . includes ( currentBlockData . type ) && (
186- < TextArea
187- id = { `content_${ currentBlockData . id } ` }
188- label = "Content"
189- name = "content"
190- rows = { 10 }
191- value = { currentBlockData . content }
192- onChange = { ( e ) => {
193- setCurrentBlockData ( {
194- ...currentBlockData ,
195- [ e . target . name ] : e . target . value ,
196- } )
197- } }
198- />
188+ < fieldset className = { classes . fieldset } >
189+ < TextArea
190+ id = { `content_${ currentBlockData . id } ` }
191+ label = "Content"
192+ name = "content"
193+ rows = { 10 }
194+ value = { currentBlockData . content }
195+ onChange = { ( e ) => {
196+ setCurrentBlockData ( {
197+ ...currentBlockData ,
198+ [ e . target . name ] : e . target . value ,
199+ } )
200+ } }
201+ />
202+ </ fieldset >
199203 ) }
200204 { [ 'youtube' , 'image' , 'quote' ] . includes ( currentBlockData . type ) && (
201- < Input
202- id = { `url_${ currentBlockData . id } ` }
203- label = "URL"
204- name = "url"
205- type = "url"
206- value = { currentBlockData . url || '' }
207- onChange = { handleChange }
208- placeholder = "https://example.com"
209- />
205+ < fieldset className = { classes . fieldset } >
206+ < Input
207+ id = { `url_${ currentBlockData . id } ` }
208+ label = "URL"
209+ name = "url"
210+ type = "url"
211+ value = { currentBlockData . url || '' }
212+ onChange = { handleChange }
213+ placeholder = "https://example.com"
214+ />
215+ </ fieldset >
210216 ) }
211217 < div className = { classes . blockActions } >
212218 < Button type = "submit" >
0 commit comments