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

adapt-contrib-tutor: Add class to indicate which plugin invoked Tutor #1427

Closed
brian-learningpool opened this issue Feb 20, 2017 · 6 comments

Comments

@brian-learningpool
Copy link
Member

Previously some code was added to add specific classes based on the question state, namely correct, incorrect, and partially-correct.

It might be useful to also pass a class through to indicate the component/extension which invoked the Tutor. This would allow more granular control over the layout for theme developers, e.g. if feedback on a Slider should be shown differently to feedback on a MCQ.

@oliverfoster
Copy link
Member

Just an "_id" or something more?

@brian-learningpool
Copy link
Member Author

I was thinking it could maybe add a class composed of the model _type and the _component or _extension attribute, e.g. component-mcq.

@oliverfoster
Copy link
Member

sounds nice. can we do origin id also?

@brian-learningpool
Copy link
Member Author

Yes, this would allow us to tweak styling on specific feedback instances. Good thinking.

@brian-learningpool brian-learningpool self-assigned this Mar 6, 2017
@brian-learningpool
Copy link
Member Author

PR here:
adaptlearning/adapt-contrib-tutor#60

@brian-learningpool
Copy link
Member Author

All outstanding PRs merged.

moloko added a commit to adaptlearning/adapt-contrib-tutor that referenced this issue Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants