tutorial: fix custombutton colors for a11y contrast (#6212)

pull/6229/head
Mauricio Paternina 4 years ago committed by GitHub
parent 10e3e3dae8
commit 27234275c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,18 +2,18 @@
button { button {
height: 4rem; height: 4rem;
width: 8rem; width: 8rem;
background-color: #aaa; background-color: #ddd;
border-color: #f1c40f; border-color: #ff3e00;
color: #f1c40f; color: #ff3e00;
font-size: 1.25rem; font-size: 1.25rem;
background-image: linear-gradient(45deg, #f1c40f 50%, transparent 50%); background-image: linear-gradient(45deg, #ff3e00 50%, transparent 50%);
background-position: 100%; background-position: 100%;
background-size: 400%; background-size: 400%;
transition: background 300ms ease-in-out; transition: background 300ms ease-in-out;
} }
button:hover { button:hover {
background-position: 0; background-position: 0;
color: #aaa; color: #ddd;
} }
</style> </style>

@ -2,18 +2,18 @@
button { button {
height: 4rem; height: 4rem;
width: 8rem; width: 8rem;
background-color: #aaa; background-color: #ddd;
border-color: #f1c40f; border-color: #ff3e00;
color: #f1c40f; color: #ff3e00;
font-size: 1.25rem; font-size: 1.25rem;
background-image: linear-gradient(45deg, #f1c40f 50%, transparent 50%); background-image: linear-gradient(45deg, #ff3e00 50%, transparent 50%);
background-position: 100%; background-position: 100%;
background-size: 400%; background-size: 400%;
transition: background 300ms ease-in-out; transition: background 300ms ease-in-out;
} }
button:hover { button:hover {
background-position: 0; background-position: 0;
color: #aaa; color: #ddd;
} }
</style> </style>

Loading…
Cancel
Save