Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wordmark component dan #26

Merged
merged 4 commits into from
Mar 16, 2023

Conversation

daneroo
Copy link
Contributor

@daneroo daneroo commented Mar 15, 2023

  • I changed the flagColor attribute to variant="color"|"monochrome"
    so now it is not possible to have black text with white flag.

  • Also added tests for checking that the color makes it into the SVG (this might be too tied to the implementation, but I had no better idea.

  • Lastly it has an example of "data driven" tests; i.e. same test done with different parameters:

monochrome variant implies flagColor==textColor and do the test with 'white', then 'black'

@LilaKelland LilaKelland merged commit 2b4961c into add-wordmark-component Mar 16, 2023
@LilaKelland LilaKelland deleted the add-wordmark-component-dan branch March 16, 2023 12:26
szeckirjr pushed a commit that referenced this pull request Mar 20, 2023
* Added component for wordmark that can be adjusted for size, color, accessibility - brain dump from Mike and HC-IPPM/safe-inputs#109, still need a full test coverage and code clean up

* added wordmark component (Canada logo) from Mike's brain dump - still working on tests for colour

* Add wordmark component dan (#26)

* Change Wordmar attribute API

* Added tests for color,monochrome variants

* Add test section comment

* Fix broken test: wrong Wordmark variant invoked

* removed maxWidth as not a svg attribute (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute), removed unused roles from flag and text color

* removed static canada.svg file

---------

Co-authored-by: Daniel Lauzon <daniel.lauzon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants