Skip to content

Commit 718f6b5

Browse files
committed
adding new class and tab setting enable for this
1 parent 9e1b0c5 commit 718f6b5

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

client/modules/IDE/components/SketchListRowBase.jsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,26 @@ const SketchListRowBase = ({
126126
return (
127127
<tr className="sketches-table__row">
128128
<th scope="row">{name}</th>
129-
<td>{formatDateCell(sketch.createdAt, mobile)}</td>
130-
<td>{formatDateCell(sketch.updatedAt, mobile)}</td>
129+
<td
130+
className="sketches-table__date-cell"
131+
tabIndex={0}
132+
aria-label={`${t('SketchList.HeaderCreatedAt')}: ${formatDateCell(
133+
sketch.createdAt,
134+
mobile
135+
)}`}
136+
>
137+
{formatDateCell(sketch.createdAt, mobile)}
138+
</td>
139+
<td
140+
className="sketches-table__date-cell"
141+
tabIndex={0}
142+
aria-label={`${t('SketchList.HeaderUpdatedAt')}: ${formatDateCell(
143+
sketch.updatedAt,
144+
mobile
145+
)}`}
146+
>
147+
{formatDateCell(sketch.updatedAt, mobile)}
148+
</td>
131149
<td hidden={!userIsOwner || mobile}>
132150
<VisibilityDropdown
133151
sketch={sketch}

client/styles/abstracts/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ $themes: (
5353
console-header-background-color: $medium-light,
5454
console-header-color: $darker,
5555
console-input-background-color: $lightest,
56+
date-created-updated: $outline-color,
5657
editor-gutter-color: $lighter,
5758
error-color: $p5js-pink,
5859
file-hover-color: $light,

client/styles/components/_sketch-list.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,9 @@
297297
color: getThemifyVariable("logo-color");
298298
}
299299
text-decoration-thickness: 0.1em;
300+
}
301+
.sketches-table__date-cell:focus-visible {
302+
outline: 2px solid #53d2f7;
303+
outline-offset: 2px;
304+
border-radius: 2px;
300305
}

0 commit comments

Comments
 (0)