Skip to content

Commit

Permalink
fix(file-uploader-inline): show back button (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut authored Feb 6, 2023
1 parent be100a5 commit cb83ebe
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 24 deletions.
19 changes: 15 additions & 4 deletions blocks/ActivityHeader/activity-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@ lr-activity-header lr-icon {
height: var(--ui-size);
}

lr-activity-header button {
color: var(--clr-txt);
}

lr-activity-header > * {
display: flex;
align-items: center;
}

lr-modal button {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--clr-txt-mid);
}

lr-modal button:hover {
background-color: var(--clr-background);
}

lr-modal button:active {
background-color: var(--clr-background-dark);
}
2 changes: 1 addition & 1 deletion blocks/CameraSource/CameraSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class CameraSource extends UploaderBlock {

CameraSource.template = /* HTML */ `
<lr-activity-header>
<button type="button" class="mini-btn close-btn" set="onclick: *historyBack">
<button type="button" class="mini-btn" set="onclick: *historyBack">
<lr-icon name="back"></lr-icon>
</button>
<div set="@hidden: !cameraSelectHidden">
Expand Down
2 changes: 1 addition & 1 deletion blocks/ConfirmationDialog/ConfirmationDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ConfirmationDialog extends ActivityBlock {

ConfirmationDialog.template = /* HTML */ `
<lr-activity-header>
<button type="button" class="mini-btn close-btn" set="onclick: *historyBack">
<button type="button" class="mini-btn" set="onclick: *historyBack">
<lr-icon name="back"></lr-icon>
</button>
<span>{{activityCaption}}</span>
Expand Down
2 changes: 1 addition & 1 deletion blocks/ExternalSource/ExternalSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class ExternalSource extends UploaderBlock {

ExternalSource.template = /* HTML */ `
<lr-activity-header>
<button type="button" class="mini-btn close-btn" set="onclick: *historyBack">
<button type="button" class="mini-btn" set="onclick: *historyBack">
<lr-icon name="back"></lr-icon>
</button>
<div>
Expand Down
15 changes: 0 additions & 15 deletions blocks/Modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,6 @@ lr-modal > dialog:not([open]) {
opacity: 0;
}

lr-modal button.close-btn {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--clr-txt-mid);
}

lr-modal button.close-btn:hover {
background-color: var(--clr-background);
}

lr-modal button.close-btn:active {
background-color: var(--clr-background-dark);
}

lr-modal > dialog {
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion blocks/UploadDetails/UploadDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class UploadDetails extends UploaderBlock {

UploadDetails.template = /* HTML */ `
<lr-activity-header>
<button type="button" class="mini-btn close-btn" set="onclick: *historyBack">
<button type="button" class="mini-btn" set="onclick: *historyBack">
<lr-icon name="back"></lr-icon>
</button>
<span l10n="caption-edit-file"></span>
Expand Down
2 changes: 1 addition & 1 deletion blocks/UrlSource/UrlSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class UrlSource extends UploaderBlock {

UrlSource.template = /* HTML */ `
<lr-activity-header>
<button type="button" class="mini-btn close-btn" set="onclick: *historyBack">
<button type="button" class="mini-btn" set="onclick: *historyBack">
<lr-icon name="back"></lr-icon>
</button>
<div>
Expand Down
6 changes: 6 additions & 0 deletions solutions/file-uploader/inline/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ lr-start-from {
container-type: inline-size;
}

lr-activity-header::after {
width: var(--ui-size);
height: var(--ui-size);
content: '';
}

lr-activity-header .close-btn {
display: none;
}
Expand Down

0 comments on commit cb83ebe

Please sign in to comment.