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

feat: Multiple choice dropdown size attribute #9765

Merged
merged 9 commits into from
May 2, 2024

Conversation

eliotwrobson
Copy link
Collaborator

@eliotwrobson eliotwrobson commented Apr 23, 2024

Adds a size parameter, the same as the free response elements, for the dropdown display mode on multiple choice. See docs for details: https://developer.snapappointments.com/bootstrap-select/examples/#width

@eliotwrobson eliotwrobson self-assigned this Apr 23, 2024
@eliotwrobson eliotwrobson marked this pull request as ready for review April 23, 2024 21:56
@jonatanschroeder
Copy link
Member

I tested locally, and it looks weird.
image

I think auto makes sense, it sets the width to the widest option. Did you get any feedback on this? I don't think this change is necessary.

@eliotwrobson
Copy link
Collaborator Author

eliotwrobson commented Apr 24, 2024

I'll have to mess with it more, some people complained about it being too wide in some cases, but I think the extra width might be controllable by just sticking everything in a div.

I think the weird display might be because of rendering latex, but not sure. If this acts weird in that case it's not worth merging.

@eliotwrobson eliotwrobson marked this pull request as draft April 24, 2024 18:09
@eliotwrobson eliotwrobson marked this pull request as ready for review April 26, 2024 22:11
@eliotwrobson eliotwrobson changed the title Multiple choice dropdown style change feat: Multiple choice dropdown size attribute Apr 26, 2024
docs/elements.md Outdated Show resolved Hide resolved
@mwest1066 mwest1066 self-requested a review May 2, 2024 16:42
eliotwrobson and others added 3 commits May 2, 2024 14:41
@eliotwrobson eliotwrobson added this pull request to the merge queue May 2, 2024
Merged via the queue into PrairieLearn:master with commit 0c5e5e3 May 2, 2024
7 checks passed
@eliotwrobson eliotwrobson deleted the style-change branch May 2, 2024 20:46
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.

None yet

2 participants