Skip to content

Commit 1ec03b5

Browse files
Merge pull request 4GeeksAcademy#53 from Sadiel0/anchor-like-button
Added missing instructions to the Readme
2 parents cb22712 + d3325d4 commit 1ec03b5

File tree

6 files changed

+31
-11
lines changed

6 files changed

+31
-11
lines changed

exercises/13-Anchor-Like-Button/README.es.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ Siga estos pasos para que tu enlace (`anchor`) se vea así:
1010

1111
2. Bordes redondeados: establece el `border-radius` en `4px`.
1212

13-
3. Encuentra y aplica el color: usa el selector de `color` (color picker) para encontrar el color exacto y aplicárselo al `background`.
13+
3. Haz que el `border` sea `1px solid #ffffff`
1414

15-
4. Eliminar subrayado: establece `text-decoration` a `none`.
15+
4. Encuentra y aplica el color: usa el selector de `color` (color picker) para encontrar el color exacto y aplicárselo al `background`.
1616

17-
5. Establecer el color del texto en blanco (`white`)
17+
5. Eliminar subrayado: establece `text-decoration` a `none`.
18+
19+
6. Establecer el color del texto en blanco (`white`)
1820

1921
*Para que el botón se vea diferente cuando el usuario pasa el mouse por encima, usamos el selector `:hover`: http://lmgtfy.com/?q=how+to+use+the+hover*
2022

21-
6. Dentro del selector `:hover` cambia el fondo del botón a un color naranja más oscuro.
23+
7. Dentro del selector `:hover` cambia el fondo del botón a `#cc7a00`.
2224

2325
## Reultado esperado:
2426

exercises/13-Anchor-Like-Button/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ Anchors are not only used within text- when you are going to use anchors outside
88

99
2. Rounded borders: Set `border-radius` to `4px`.
1010

11-
3. Find and apply the color: Use the color picker to find the color and apply make the background to that color.
11+
3. Set the `border` to `1px solid #ffffff`
1212

13-
4. Remove underline: Set `text-decoration` to `none`.
13+
4. Find and apply the color: Use the color picker to find the color and apply make the background to that color.
1414

15-
5. Set the color of the text to `white`.
15+
5. Remove underline: Set `text-decoration` to `none`.
16+
17+
6. Set the color of the text to `white`.
1618

1719
*To make the button look different when the user hovers over with the mouse, we use the `:hover` selector: http://lmgtfy.com/?q=how+to+use+the+hover*
1820

19-
6. Inside of the `:hover` selector change the background of the button to a `darker orange`.
21+
7. Inside of the `:hover` selector change the background of the button to `#cc7a00`.
2022

2123
## Expected result:
2224

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.orange-btn {
2+
/*your code here*/
3+
padding: 10px;
4+
border-radius: 4px;
5+
border: 1px solid #ffffff;
6+
background-color: rgb(255, 153, 51);
7+
text-decoration: none;
8+
color: white;
9+
}
10+
11+
.orange-btn:hover {
12+
/*YOUR CODE HERE FOR THE HOVER STATE*/
13+
background: #cc7a00;
14+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
.orange-btn {
22
/*your code here*/
3+
34
}
45

56
.orange-btn:hover {
67
/*YOUR CODE HERE FOR THE HOVER STATE*/
7-
}
8+
9+
}

exercises/13-Anchor-Like-Button/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe("All the styles should be applied", function () {
7575
let orangeHoverSelector="";
7676
for (let i=0; i<cssArray.length; i++) {
7777
if (cssArray[i].selectorText===".orange-btn:hover") {
78-
orangeHoverSelector=cssArray[i].style.background;
78+
orangeHoverSelector=cssArray[i].style.background ;
7979
}
8080
}
8181

learn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"editor": {
1717
"version": "1.0.73"
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)