Skip to content

Fix issue #208: Add HTML <q> tag to core components #212

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

Closed
wants to merge 1 commit into from
Closed

Fix issue #208: Add HTML <q> tag to core components #212

wants to merge 1 commit into from

Conversation

GrantBarry
Copy link
Contributor

Issue #208: Add HTML tag to core components

Changes

  • Created q folder, q.haml and q.rb files to matestack ui core components
  • Created q.md to docs > components
  • Created q_spec.rb to usage > components

Notes

  • Nothing here

@pascalwengerter pascalwengerter self-requested a review September 30, 2019 12:27
Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

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

Hey @GrantBarry, thank you for the pull request! There's some minor changes as commented. Could you also change the target branch to develop? Master reflects the current version of the Gem, and we merge develop into master with a Changelog documentation every once in a while :)
Keep up the good work - and feel free to join or Gitter if you face challenges or questions arrise! https://gitter.im/basemate/community

@@ -0,0 +1,5 @@
module Matestack::Ui::Core::Q
class Q < Matestack::Ui::Core::Component::Static

Copy link
Contributor

Choose a reason for hiding this comment

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

Here, you probably need to merge the cite option into @tag_attributes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, got you.

@@ -0,0 +1,3 @@
%q{@tag_attributes}
- if block_given?
Copy link
Contributor

Choose a reason for hiding this comment

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

I would love this component to have a options[:text, like e.g. the paragraph or span component. Could you implement (and test & document) this?


## Parameters

This component can take 2 optional configuration params and either yield content or display what gets passed to the `text` configuration param.
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, the cite configuration param is missing


#nested q
q do
q id: "my-nested-q"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please test the text: "This is an example text cite" and cite: "www.matestack.org/example" as well :)

## Example 2: Render options[:text] param

```ruby
q id: "foo", class: "bar", text: 'Hello World'
Copy link
Contributor

Choose a reason for hiding this comment

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

This example is not tested and for now probably wouldn't work!

@pascalwengerter
Copy link
Contributor

Closed as duplicate to #216

@GrantBarry GrantBarry deleted the add_q_tag branch October 2, 2019 16:30
@jonasjabari jonasjabari added this to the 0.7.3 milestone Oct 16, 2019
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.

3 participants