Use button element for add-photo link

This commit is contained in:
2026-04-22 11:32:57 +04:00
parent c853418fbb
commit b83a16bf13
2 changed files with 15 additions and 4 deletions

View File

@@ -570,9 +570,13 @@ export default class PlaceDetails extends Component {
<p class="content-with-icon"> <p class="content-with-icon">
<Icon @name="camera" /> <Icon @name="camera" />
<span> <span>
<a href="#" {{on "click" this.openPhotoUploadModal}}> <button
type="button"
class="btn-link"
{{on "click" this.openPhotoUploadModal}}
>
Add a photo Add a photo
</a> </button>
</span> </span>
</p> </p>
</div> </div>

View File

@@ -771,12 +771,19 @@ select.form-control {
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.meta-info a { .meta-info a,
.meta-info .btn-link {
color: var(--link-color); color: var(--link-color);
text-decoration: none; text-decoration: none;
background: none;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
} }
.meta-info a:hover { .meta-info a:hover,
.meta-info .btn-link:hover {
text-decoration: underline; text-decoration: underline;
} }