Fix carousel chevron links
Correct color, hide while disabled
This commit is contained in:
@@ -135,7 +135,7 @@ export default class PlacePhotosCarousel extends Component {
|
|||||||
disabled={{this.cannotScrollLeft}}
|
disabled={{this.cannotScrollLeft}}
|
||||||
aria-label="Previous photo"
|
aria-label="Previous photo"
|
||||||
>
|
>
|
||||||
<Icon @name="chevron-left" />
|
<Icon @name="chevron-left" @color="currentColor" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -146,7 +146,7 @@ export default class PlacePhotosCarousel extends Component {
|
|||||||
disabled={{this.cannotScrollRight}}
|
disabled={{this.cannotScrollRight}}
|
||||||
aria-label="Next photo"
|
aria-label="Next photo"
|
||||||
>
|
>
|
||||||
<Icon @name="chevron-right" />
|
<Icon @name="chevron-right" @color="currentColor" />
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -950,11 +950,11 @@ abbr[title] {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.place-photos-carousel-wrapper:hover .carousel-nav-btn {
|
.place-photos-carousel-wrapper:hover .carousel-nav-btn:not(.disabled) {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-nav-btn:hover {
|
.carousel-nav-btn:not(.disabled):hover {
|
||||||
background: rgb(0 0 0 / 80%);
|
background: rgb(0 0 0 / 80%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user