ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 25 - AD0-E720 discussion

Report
Export

An Adobe Commerce developer is customizing buttons for a custom theme that inherits Magento/blank theme and needs to override the default values. Where would the default values for the buttons be located?

A.
lib/web/css/source/lib/_buttons.less
Answers
A.
lib/web/css/source/lib/_buttons.less
B.
lib/web/less/source/lib/_buttons.less
Answers
B.
lib/web/less/source/lib/_buttons.less
C.
lib/web/css/source/lib/_button.less
Answers
C.
lib/web/css/source/lib/_button.less
Suggested answer: A

Explanation:

To find the default values for the buttons, the developer needs to look at the lib/web/css/source/lib/_buttons.less file. This file contains various variables, mixins, and styles for defining and customizing buttons. The developer can override these values in their custom theme by using the .lib-button() mixin or by creating their own mixins or classes. For example:

.lib-button( @_button-selector, @_button-type, @_button-shape, @_button-color, @_button-background, @_button-border, @_button-text-transform, @_button-box-shadow, @_button-hover-color, @_button-hover-background, @_button-hover-border, @_button-hover-box-shadow );

The lib/web/less/source/lib/_buttons.less and lib/web/css/source/lib/_button.less files are not valid and do not exist.

Reference: [Buttons], [Magento UI library]

asked 02/10/2024
Thomas Drilling
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first