Remove redundant progress bar
We were displaying two progress bars for the same thing, and hiding one of them. Displaying just one of them and readjusting the styles accordingly is a bit more intuitive IMHO. We're also getting the text inside the progress bar out of it; its purpose inside an element with the `progressbar` role is to provide the same information as the progress bar (which we aren't exactly doing, although it could be argued that we do), and in order to be accessible we should provide the same text in the `aria-valuetext` field, which we aren't doing. This also simplifies our CSS, which was working because we defined a padding which covered the height of the hidden extra progress bar and would have needed quite a few changes if we kept just one progress bar with text inside it. We can also remove a few CSS rules which we added to override foundation's rules for the `progress-meter-text` class.
This commit is contained in:
@@ -1285,6 +1285,7 @@
|
||||
.progress {
|
||||
background: #212033;
|
||||
clear: both;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.progress-meter {
|
||||
@@ -1293,29 +1294,20 @@
|
||||
transition: width 2s;
|
||||
}
|
||||
|
||||
.spent-amount-progress,
|
||||
.spent-amount-meter {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.spent-amount-text {
|
||||
color: #fff;
|
||||
font-size: $base-font-size;
|
||||
font-weight: normal;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin-bottom: 0;
|
||||
position: relative;
|
||||
text-align: right;
|
||||
top: 16px;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
|
||||
&::before {
|
||||
color: #a5a1ff;
|
||||
content: "\57";
|
||||
font-family: "icons";
|
||||
font-size: $small-font-size;
|
||||
line-height: 0;
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -17px;
|
||||
right: -0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1328,7 +1320,6 @@
|
||||
|
||||
.amount-available {
|
||||
display: block;
|
||||
text-align: right;
|
||||
|
||||
span {
|
||||
font-size: rem-calc(24);
|
||||
@@ -1486,6 +1477,7 @@
|
||||
height: auto;
|
||||
left: 0;
|
||||
padding: $line-height;
|
||||
padding-bottom: $line-height / 2;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user