File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed
ui/components/data-tables/inline-edit Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 156
156
* @selector .slds-cell-edit
157
157
* @restrict .slds-table_edit th, .slds-table_edit td
158
158
*/
159
- .slds-cell-edit {
159
+ .slds-table .slds- cell-edit {
160
160
outline : 0 ; // @TODO: This came from `has-focus` (watch for overreaching)
161
161
162
162
& .slds-has-focus { // This is the focused state
Original file line number Diff line number Diff line change @@ -321,6 +321,35 @@ export let states = [
321
321
</ Container >
322
322
)
323
323
} ,
324
+ {
325
+ id : 'row-selected-with-edited-cell' ,
326
+ label : 'Row Selected with an Edited Cell' ,
327
+ element : (
328
+ < Container >
329
+ < Table isEditable style = { { width : '66.75rem' } } >
330
+ < Thead
331
+ actionableMode
332
+ columns = { columns }
333
+ hasErrorColumn
334
+ mainColumnWidth = "8.75rem"
335
+ />
336
+ < tbody >
337
+ { _ . times ( rows . length , i => (
338
+ < InlineEditTr
339
+ key = { i }
340
+ index = { i + 1 }
341
+ className = { i === 0 ? 'slds-is-selected' : null }
342
+ { ...rows [ i ] }
343
+ rowSelected = { i === 0 ? true : null }
344
+ actionableMode
345
+ showEditedCell
346
+ />
347
+ ) ) }
348
+ </ tbody >
349
+ </ Table >
350
+ </ Container >
351
+ )
352
+ } ,
324
353
{
325
354
id : 'row-error' ,
326
355
label : 'Error - Row level on save (Actionable mode)' ,
@@ -354,6 +383,37 @@ export let states = [
354
383
document.getElementById('button-01').focus()
355
384
`
356
385
} ,
386
+ {
387
+ id : 'row-error-and-selected' ,
388
+ label :
389
+ 'Error - Row level on save (Actionable mode) with entire row selected' ,
390
+ element : (
391
+ < Container >
392
+ < Table isEditable style = { { width : '66.75rem' } } >
393
+ < Thead
394
+ actionableMode
395
+ columns = { columns }
396
+ hasErrorColumn
397
+ mainColumnWidth = "8.75rem"
398
+ />
399
+ < tbody >
400
+ { _ . times ( rows . length , i => (
401
+ < InlineEditTr
402
+ key = { i }
403
+ index = { i + 1 }
404
+ className = { i === 0 ? 'slds-is-selected' : null }
405
+ { ...rows [ i ] }
406
+ rowSelected = { i === 0 ? true : null }
407
+ actionableMode
408
+ showCellError
409
+ showRowError
410
+ />
411
+ ) ) }
412
+ </ tbody >
413
+ </ Table >
414
+ </ Container >
415
+ )
416
+ } ,
357
417
{
358
418
id : 'row-error-focused' ,
359
419
label : 'Error indicator - Focused (Actionable mode)' ,
You can’t perform that action at this time.
0 commit comments