-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FFT-165 Edit forecast columns filtering (#600)
Co-authored-by: Sam Dudley <[email protected]>
- Loading branch information
1 parent
ae6f96f
commit 2393899
Showing
8 changed files
with
150 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Feature: Show/hide a forecast column | ||
|
||
Scenario: Clicking the NAC column hide link hides the NAC column | ||
Given the user wants to hide the NAC column | ||
When the user clicks the hide NAC column | ||
Then the NAC column is hidden | ||
Scenario: Clicking the NAC code column hide link hides the NAC code column | ||
Given the user wants to hide the NAC code column | ||
When the user clicks the hide NAC code column | ||
Then the NAC code column is hidden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export default function CheckboxItem({ onChange, checked, name, label }) { | ||
return ( | ||
<div className="govuk-checkboxes__item"> | ||
<input | ||
type="checkbox" | ||
name={name} | ||
id={`show_hide_${name}`} | ||
className="govuk-checkboxes__input" | ||
checked={checked} | ||
onChange={onChange} | ||
/> | ||
<label className="govuk-label govuk-checkboxes__label" htmlFor={name}> | ||
{label} | ||
</label> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.