You start off with basic flirts, and when they get more comfortable, you start getting a little more risqué. It's really just about comfort, and also interest.
They're already comfortable with you to the point of discussing something like that. Hint at it for a bit so it doesn't feel so sudden. Then ask nicely.