-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #4482
base: master
Are you sure you want to change the base?
Develop #4482
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test | ||
- name: Upload HTML report(backstop data) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: report | ||
path: backstop_data |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,22 @@ | |
/> | ||
</head> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<div class="search-box search-box--big"> | ||
<input | ||
class="search-txt search-txt--big" | ||
type="text" | ||
data-qa="big" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
Comment on lines
+20
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add empty lines between multiline sibling blocks of HTML to simplify reading.
Comment on lines
+20
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep your attributes correctly formatted. Since the
Comment on lines
+20
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add empty lines between multiline sibling blocks of HTML to add some 'air' and simplify reading. There should be an empty line between the closing |
||
</div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add empty lines between multiline sibling blocks of HTML. There should be an empty line between the |
||
|
||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<div class="search-box search-box--small"> | ||
<input | ||
class="search-txt search-txt--small" | ||
type="text" | ||
data-qa="small" | ||
placeholder="Try “Los Angeles“" | ||
Comment on lines
+30
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep your attributes correctly formatted. The |
||
/> | ||
Comment on lines
+29
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep your attributes correctly formatted. The |
||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,90 @@ | ||
/* add styles here */ | ||
body { | ||
font-family: ' Avenir ', sans-serif; | ||
font-weight: 300; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The font-family declaration should include a fallback font. It's a good practice to have a generic font family specified in case the primary font fails to load. For example: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are extra spaces inside the quotes of the font-family name 'Avenir'. It should be written without leading or trailing spaces as |
||
} | ||
|
||
input { | ||
all: unset; | ||
width: 100%; | ||
height: 100%; | ||
box-sizing: border-box; | ||
border: 1px solid #e1e7ed; | ||
} | ||
Comment on lines
+6
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't fix container size (if there is no such a requirement). In this case, setting both |
||
|
||
@font-face { | ||
font-family: ' Avenir '; | ||
src: url('./fonts/Avenir-Book.ttf') format('truetype'); | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
.search-box { | ||
position: relative; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The selector '.search-box' is styling a class name directly. According to the checklist, you should avoid using tag names for styling (except 'html' and 'body'). It's recommended to use classes for styling elements. |
||
margin: 20px 0; | ||
box-shadow: 0 1px 8px 0 #3d4e611a; | ||
border-radius: 4px; | ||
} | ||
Comment on lines
+21
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
Comment on lines
+21
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Be consistent with your margins (Add only top or bottom, but not both). Here, you've added a margin with |
||
.search-box--big { | ||
height: 70px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that there is no requirement for a fixed size for |
||
|
||
.search-box--small { | ||
height: 42px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that there is no requirement for a fixed size for |
||
|
||
.search-box--big::before { | ||
position: absolute; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The image URL in the background-image property should be enclosed in single or double quotes for consistency and to ensure compatibility across different browsers. |
||
content: ''; | ||
background-image: url('./images/Search.svg'); | ||
background-repeat: no-repeat; | ||
top: 25px; | ||
left: 26px; | ||
width: 19px; | ||
height: 19px; | ||
} | ||
|
||
.search-box--small::before { | ||
position: absolute; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The image URL in the background-image property should be enclosed in single or double quotes for consistency and to ensure compatibility across different browsers. |
||
content: ''; | ||
background-image: url('./images/search-small.svg'); | ||
background-repeat: no-repeat; | ||
top: 15px; | ||
left: 13px; | ||
width: 11px; | ||
height: 11px; | ||
} | ||
|
||
.search-txt { | ||
border-radius: 4px; | ||
color: #3d4e61; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The '.search-txt' class is applying a border-radius, which is not needed here since this class is used for text elements and not for any box/container elements. |
||
} | ||
|
||
.search-txt--big { | ||
padding-left: 62px; | ||
font-size: 16px; | ||
line-height: 21.86px; | ||
} | ||
|
||
.search-txt--small { | ||
padding-left: 33px; | ||
font-weight: 400; | ||
font-size: 14px; | ||
line-height: 19.12px; | ||
} | ||
|
||
.search-box:hover { | ||
box-shadow: 0 4px 4px 0 #00000040; | ||
} | ||
|
||
input::placeholder { | ||
color: #3d4e61; | ||
} | ||
|
||
input:focus::placeholder { | ||
opacity: 0; | ||
} | ||
|
||
.search-txt:focus { | ||
font-weight: 900; | ||
text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.25); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applying a text-shadow with a large spread on focus can be visually straining for users. Consider a more subtle effect or remove it if it's not necessary for the design. |
||
box-shadow: 0 4px 4px 0 #00000040; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep your attributes correctly formatted. The
<input>
tag starting on line 21 should have each attribute on a new line with proper indentation.