Skip to content

Commit

Permalink
Add label to time button
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed May 14, 2021
1 parent 549a18c commit 630ff8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37539,7 +37539,7 @@ function DateAndTime({ item, view, filePath, onEditDate, onEditTime, }) {
return (react.createElement("span", { className: c$2("item-metadata-date-wrapper") },
react.createElement("span", Object.assign({}, dateProps, { className: `${c$2("item-metadata-date")} ${!shouldLinkDate ? "is-button" : ""}` }), date),
" ",
hasTime && (react.createElement("span", { onClick: onEditTime, className: `${c$2("item-metadata-time")} is-button` }, timeDisplayStr))));
hasTime && (react.createElement("span", { onClick: onEditTime, className: `${c$2("item-metadata-time")} is-button`, "aria-label": "Change time" }, timeDisplayStr))));
}
function ItemContent({ item, isSettingsVisible, setIsSettingsVisible, onEditDate, onEditTime, onChange, }) {
const obsidianContext = react.useContext(ObsidianContext);
Expand Down
1 change: 1 addition & 0 deletions src/components/Item/ItemContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function DateAndTime({
<span
onClick={onEditTime}
className={`${c("item-metadata-time")} is-button`}
aria-label="Change time"
>
{timeDisplayStr}
</span>
Expand Down

0 comments on commit 630ff8a

Please sign in to comment.