Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Add "tag" option to second and third level headings - #212

Merged
colleenmcginnis merged 5 commits into
masterfrom
accordion-prop-fix
Dec 20, 2019
Merged

colleenmcginnis merged 5 commits into
masterfrom
accordion-prop-fix

Conversation

@colleenmcginnis

Copy link
Copy Markdown
Contributor

Adds an optional tag prop to secondLevelHeadings and thirdLevelHeadings in NavigationAccordion.

Screen Shot 2019-12-19 at 8 22 57 AM

@katydecorah katydecorah left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

I have two thoughts that can addressed in a separate ticket/PR (if we like them, of course!)

  1. Do we have a defined set of tags? I think we should consider it to avoid tag sprawl. I wonder if we should repurpose BetaFlag like the work on Notes #202 - so that we have a Flag component and a list of themes to choose from. Then this tag prop would accept a string for the theme of the flag instead of a whole component.
  2. Should the prop in this component be called flag instead of tag? Or should BetaFlag (or Flag) be called BetaTag (or Tag)?

@colleenmcginnis

Copy link
Copy Markdown
Contributor Author

Excellent points! I have a slight preference for tag over flag, but could be convinced otherwise. I can merge this PR and #207 first, then work on these two points in a follow up PR. 🎉

Then this tag prop would accept a string for the theme of the flag instead of a whole component.

I'm slightly hesitant to disallow nodes altogether in case we're moving fast and need to add a new tag theme to one repo temporarily until the next dr ui release can be done. Maybe there's a way to allow a "custom" option + component for those temporary situations. 🤷‍♀

@katydecorah

Copy link
Copy Markdown
Contributor

Sounds good!

@colleenmcginnis
colleenmcginnis merged commit 7e333a0 into master Dec 20, 2019
@colleenmcginnis
colleenmcginnis deleted the accordion-prop-fix branch December 20, 2019 02:23
katydecorah pushed a commit that referenced this pull request Dec 20, 2019
* master:
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  Add IE11 compatibility for the `Search` component (#203)
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
katydecorah pushed a commit that referenced this pull request Jan 2, 2020
* master:
  Collapse grayed lines in code block (#206)
  Add a tag component with themes (#216)
  Add new related page component (#213)
  Rework Notes themes (#202)
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  Add IE11 compatibility for the `Search` component (#203)
katydecorah pushed a commit that referenced this pull request Jan 3, 2020
* master:
  Update CHANGELOG.md
  Update CHANGELOG.md
  Collapse grayed lines in code block (#206)
  Add a tag component with themes (#216)
  Add new related page component (#213)
  Rework Notes themes (#202)
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  allow `feedbackSentryDsn` to accept string (url) or boolean (false)
  Add IE11 compatibility for the `Search` component (#203)
  conditionally set `section` and `preferredLanguage`; send along `environment`
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
  Prepare 0.23.0
  Allow for a configurable connector on search component (#200)
  Update budo
katydecorah pushed a commit that referenced this pull request Jan 7, 2020
* master: (32 commits)
  add missing indices (#219)
  Create `Edit` and `CodeSnippet` components (#197)
  Update CHANGELOG.md
  Update CHANGELOG.md
  create highlight/theme-css
  Create themes component to house shared themes for Tag and Note (#217)
  Update CHANGELOG.md
  Update CHANGELOG.md
  Collapse grayed lines in code block (#206)
  Add a tag component with themes (#216)
  Add new related page component (#213)
  Rework Notes themes (#202)
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  allow `feedbackSentryDsn` to accept string (url) or boolean (false)
  Add IE11 compatibility for the `Search` component (#203)
  conditionally set `section` and `preferredLanguage`; send along `environment`
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants