Skip to content

Commit ec33a88

Browse files
committed
Improve grammar
1 parent 33b3875 commit ec33a88

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1313

1414
### Changed
1515

16-
* [BREAKING] The API of Flowbite::InputField::RadioButton now follows the same structure as the other components for hints. Instead of passing a String (`hint: "This is the hint"`) you now have to pass a Hash that's passed along to the Hint component (ie `hint: {content: "This is the hint"}`), allowing you to customize other options (eg HTML attributes like class) as well.
16+
* [BREAKING] The API of Flowbite::InputField::RadioButton now follows the same structure as the other components for hints. Instead of passing a String (`hint: "This is the hint"`) you now have to pass a Hash that's passed along to the Hint component (i.e. `hint: {content: "This is the hint"}`), allowing you to customize other options (eg HTML attributes like class) as well.
1717

1818
### Removed
1919

@@ -25,7 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2525
* Flowbite::Link component to render links.
2626
* Flowbite::Card now displays a title via the title argument/slot.
2727
* Improved error message when an unknown style is requested.
28-
* Input-elements now support forms without an object; ie forms built with `form_tag` - not `form_for` or `form_with`.
28+
* Input-elements now support forms without an object; i.e. forms built with `form_tag` - not `form_for` or `form_with`.
2929

3030
### Changed
3131

@@ -34,7 +34,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3434

3535
### Removed
3636

37-
* [BREAKING] Color-specific styles from Flowbite::Button, ie `alternative`, `green`, `light`, `purple`, `red`, `yellow`.
37+
* [BREAKING] Color-specific styles from Flowbite::Button, i.e. `alternative`, `green`, `light`, `purple`, `red`, `yellow`.
3838

3939

4040
## [0.1.3]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ render(Component.new(class: "these are added"))
250250
```
251251

252252
This makes for easier customization of components, where you don't have to
253-
recreate the entire classlist, ie in order to increase sizes or add margins or
253+
recreate the entire classlist, i.e. in order to increase sizes or add margins or
254254
whatever.
255255

256256
If you want to replace the entire class attribute for a component, pass it as part of the `options` hash, ie

app/components/flowbite/input/field.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Input
66
# messages, hints, etc.
77
#
88
# Use this when you want to render an input field on its own without any
9-
# surrounding elements, ie as a building block in more complex input
9+
# surrounding elements, i.e. as a building block in more complex input
1010
# components.
1111
#
1212
# To render a complete input field with labels and error messages, use

app/components/flowbite/input_field.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Flowbite
44
# A fully fledged form element for an attribute containing label, input field,
5-
# error messages, helper text and whatever else is needed for a user friendly
5+
# error messages, helper text and whatever else is needed for a user-friendly
66
# input experience.
77
#
88
# @see https://flowbite.com/docs/forms/input-field/
@@ -76,7 +76,7 @@ def errors
7676
# will be used to generate the input field.
7777
#
7878
# @param class [String, Array<String>] Additional CSS classes to apply to
79-
# the input field container, ie the outermost element. To add classes to
79+
# the input field container, i.e. the outermost element. To add classes to
8080
# individual components of the InputField, use the +input+, +label+ and
8181
# +hint+ arguments.
8282
#
@@ -86,11 +86,11 @@ def errors
8686
# additional context or instructions for the user. If provided, this Hash
8787
# is passed to the {Flowbite::Input::Hint} constructor.
8888
# @option hint [String] content The content of the hint element.
89-
# @option hint [Hash] options additional options to pass to the hint
89+
# @option hint [Hash] options Additional options to pass to the hint
9090
# component. This can be used to set the class, for example.
9191
#
9292
# @param input [Hash] A hash with options for the input component.
93-
# These are passed to the input components constructor, see the
93+
# These are passed to the input component's constructor, see the
9494
# documentation for whatever input component is being used.
9595
# See {Flowbite::Input::Field}.
9696
# @option input [Hash] options Additional HTML attributes to pass to

0 commit comments

Comments
 (0)