ISSUE-031 - Big update. AngledFlag component is born!
It's not 100% complete - I still need to add the second, slightly offset sub flag that goes beneath the main flag, creating a sort of refractive-glass/parallax effect. Needed to add a new workspace. Thankfully it's pretty easy to add a new workspace. So, kinda nice. Did a lot of work making 2:1 versions of each flag in vector. Was a bit of a pain in the ass. Renamed a prop for ProgressSlider, "onBarColor" because prefixing a prop with "on" is special for React and it gets upset and spits out an error.
This commit is contained in:
1 parent
55e07a444e
commit
4a9c124832
46 files changed
+1063
-70
No files matched your search
@@ -77,7 +77,7 @@ export function ProgressSlider({
|
||||
) ? -1 : value > 0.1 ? 4 : 3 // Tuned fitting considerations.
|
||||
}
|
||||
disabled={disabled}
|
||||
onBarColor={labelColor}
|
||||
color={labelColor}
|
||||
>
|
||||
{formatter(value)}
|
||||
</ProgressSliderBarIndicator>
|
||||
|
||||
@@ -62,7 +62,7 @@ ProgressSliderBarHandle.displayName = "ProgressSliderBarHandle";
|
||||
type ProgressSliderBarIndicatorProps = {
|
||||
left: number,
|
||||
disabled: boolean,
|
||||
onBarColor?: string,
|
||||
color?: string,
|
||||
};
|
||||
export const ProgressSliderBarIndicator = styled.span<ProgressSliderBarIndicatorProps>`
|
||||
display: block;
|
||||
@@ -72,11 +72,11 @@ export const ProgressSliderBarIndicator = styled.span<ProgressSliderBarIndicator
|
||||
|
||||
font-family: ${p => p.theme.fonts.f1Regular};
|
||||
font-size: 0.9em;
|
||||
color: ${({ onBarColor, left, disabled }) => (
|
||||
color: ${({ color, left, disabled }) => (
|
||||
left < 0
|
||||
? disabled
|
||||
? (p => p.theme.colors.darkGrey)
|
||||
: onBarColor ?? "white"
|
||||
: color ?? "white"
|
||||
: (p => p.theme.colors.darkGrey)
|
||||
)};
|
||||
|
||||
|
||||
Reference in new issue
Block a user