mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-24 09:21:06 -04:00
Make clickable area of link bigger
Fitt’s law[1] states that bigger click areas are quicker and easier for people to click. Therefore we should make click areas as big as possible, without being ambiguous about what the outcome of clicking will be or increasing the potential for accidental clicks. The click areas of the row numbers in the table were very small – this commits makes them as big as the containing table cells. Uses this technique to achieve the bigger click areas without disrupting the layout: http://authenticff.com/journal/css-pro-tip-expanding-clickable-area 1. https://en.wikipedia.org/wiki/Fitts%27s_law
This commit is contained in:
@@ -129,8 +129,31 @@
|
||||
}
|
||||
|
||||
&-index {
|
||||
|
||||
@include bold-16;
|
||||
width: 15px;
|
||||
|
||||
a {
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
|
||||
&:before {
|
||||
background: $yellow;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
|
||||
Reference in New Issue
Block a user