Skip to content

docs: autocomplete styling documentation rework #403

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

Merged
merged 1 commit into from
Aug 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/Autocomplete/src/Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,29 +166,28 @@ Styling Tom Select
------------------

In your ``assets/controllers.json`` file, you should see a line that automatically
includes a CSS file for Tom Select.
includes a CSS file for Tom Select which will give you basic styles.

.. code-block:: text

"autoimport": {
"tom-select/dist/css/tom-select.default.css": true
}

This should give you basic styles for Tom Select. If you're using
Bootstrap, you can get Bootstrap-ready styling by (A) changing this
line to ``false``:
If you're using Bootstrap, you can get Bootstrap-ready styling by
changing this line to ``false``:

.. code-block:: text

"autoimport": {
"tom-select/dist/css/tom-select.default.css": false
}

And then (B) importing the Bootstrap-css file:
And then importing the Bootstrap CSS file:

.. code-bock:: css
.. code-block:: css

/* assets/styles/app.css
/* assets/styles/app.css */
@import 'tom-select/dist/css/tom-select.bootstrap5.css';

To further customize things, you can override the classes with your own custom
Expand Down