btn-danger
é a cor do botão que você usará para notificar os usuários de que o botão executa uma ação destrutiva, como a exclusão de uma foto de gato. Crie um botão com o texto "Delete" e dê a classe btn-danger
. Observe que esses botões ainda precisam das classes btn
e btn-block
. button
com o texto "Excluir".
testString: 'assert(new RegExp("Delete","gi").test($("button").text()), "Create a new button
element with the text "Delete".");'
- text: Todos os seus botões Bootstrap devem ter as classes btn
e btn-block
.
testString: 'assert($("button.btn-block.btn").length > 2, "All of your Bootstrap buttons should have the btn
and btn-block
classes.");'
- text: Seu novo botão deve ter a classe btn-danger
.
testString: 'assert($("button").hasClass("btn-danger"), "Your new button should have the class btn-danger
.");'
- text: Certifique-se de que todos os seus elementos de button
tenham uma tag de fechamento.
testString: 'assert(code.match(/<\/button>/g) && code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: