How change foundation's button to always be enabled?

时间:2016-03-04 17:52:25

标签: button zurb-foundation

Which class I need to add, or to do something else, on my button to look still enabled after click?

1 个答案:

答案 0 :(得分:1)

不确定我是否正确理解了这个问题,但是:

您需要定位按钮:active:focus伪选择器,并将背景颜色设置为与按钮背景颜色相同。

类似(在SCSS中):

.button{
  &:active,&:focus{
    background: $primary-color;
  }
}

因此,当您点击按钮或它被激活时,它仍将是与初始状态相同的颜色。